Leap Year Calculator (How to Calculate Leap Year?)

This is a Leap Year Calculator. The simple JavaScript program will could help you easily check whether a year is leap year or not. Leap Year calculation is necessary when we do some calculation. For example, NIC calculator.

Leap Year

A leap year is a calendar year that contains an additional day that resulted to have 366 days in a year than 365 days. Normally, year has 365 days, but leap year has 365 day by adding an additional day in February. Therefore leap year’s February month has 29 days rather than the common 28 days.`If we want to say it in more technical method that there are approximately 365.24 days in a year. Therefore, there is a need to add 1 extra day once every 4 years, and a year with 1 extra day is known as a leap year.

leap year

How to Calculate Leap Year?

Finding leap year is easy by looking at a calendar that comes with February 29. But, there are easy calculating methods with a few special rules.

  • If year is not divisible by 4 then it is a common year
  • If year is not divisible by 100 then it is a leap year
  • If year is not divisible by 400 then it is a common year 
Example (1992):

Evenly divisible by 4 (1992 / 4 = 498)

Not evenly divisible by 100 (1992 / 100 = 19.92)

1992 is a leap year!

Here is the Leap Year Calculator. If you enter a leap year, the result will be "true". If not, you will get "false".

Input Year:

5 Comments