Is Leap Year

Check if a year is a leap year.

Is Leap Year Calculator

This calculator determines if a specific year is a leap year.

Use Cases

  • Calendar Logic: Developing scheduling software.
  • History: Verifying dates in historical records.
  • Planning: Accounting for the extra day in Feb.

Formula

A year is a leap year if:

  1. It is divisible by 4
  2. AND (it is NOT divisible by 100 OR it is divisible by 400)
IsLeap=(Year%4==0)((Year%1000)(Year%400==0))\text{IsLeap} = (\text{Year} \% 4 == 0) \land ((\text{Year} \% 100 \neq 0) \lor (\text{Year} \% 400 == 0))