Date and time

Leap year checker

Test any year against the complete Gregorian leap-year rule. The answer explains whether February has twenty-eight or twenty-nine days.

Enter your values

Your results

Leap-year result
—

How we got this result: The page substitutes your current entries into this rule: A year is leap if divisible by 4, except century years must also be divisible by 400.

How to use this calculator

  1. Enter year.
  2. Review the assumptions and units shown beside the fields.
  3. Read the live result, calculation note, and worked examples before using the answer.

Why your birthday on February 29th skips a year

You pick a year. The tool checks it. If it divides evenly by four, you might be done. But wait. If that year also divides evenly by one hundred, the rule changes. It must then divide evenly by four hundred to count as a leap year. This specific logic handles the edge cases that trip up manual calculations.

Think about February twenty-ninth. Most years, that date simply does not exist. Your calendar jumps from the twenty-eighth to the first of March. For someone born on that day, tracking anniversaries or scheduling events requires knowing exactly when that extra day appears. You cannot just guess. You need a precise answer based on the Gregorian rules.

Consider the year 1900. It divides by four. It divides by one hundred. But it does not divide by four hundred. So, no extra day in February. Now look at 2000. It divides by four, one hundred, and four hundred. That year gets the twenty-ninth. These examples show why a simple "divisible by four" check fails. The tool applies the full rule so you know exactly when that missing date returns.

The three-part rule that decides if February gets an extra day

Start with divisibility rather than the final digit. The year 2024 divides evenly by 4 and is not divisible by 100, so it is a leap year and February 29 is valid. A last-digit shortcut is unreliable because it obscures the century exception.

But the rule has a twist. Century years break the basic pattern. These are years ending in two zeros. They must pass a stricter test. They need to divide evenly by four hundred, not just four. This exception exists to keep the calendar aligned with the solar year.

Look at 1900. It divides by four. But it also divides by one hundred. Does it divide by four hundred? No. So 1900 was not a leap year. February had only twenty-eight days. Compare that to 2000. It divides by four. It divides by one hundred. And it divides by four hundred. So 2000 was a leap year. The logic is specific. It is not just about the last digit. It is about the whole number and its relationship to these divisors.

Step-by-step division to check any given year

Start with 2024. Divide by 4. You get 506 with no remainder. Since it is not a century year, the rule stops there. February gets twenty-nine days. Simple enough. Now look at 1900. Divide by 4. It goes in evenly. But it ends in two zeros, so you must check the next step. Divide 1900 by 100. It works. Divide 1900 by 400. It does not. The extra day disappears. February has only twenty-eight days. This is where many people guess wrong. They see the multiple of four and stop. They miss the century trap.

Take 2000. Divide by 4. No remainder. Divide by 100. No remainder. Divide by 400. Exactly 5. It passes the final test. February gains its extra day. The arithmetic is straightforward. You do not need complex software. You just need to follow the division chain. If a number divides evenly, the remainder is zero. If not, it fails that specific check. The order matters. You check the smaller divisors first. Then you apply the exception for centuries. This sequence protects the calendar from drifting out of sync with the seasons.

You can do this for any year. Grab a piece of paper. Write down your number. Perform the divisions in order. Watch the remainders. If you hit a zero at the 400 stage, you are done. If you fail at 100 but passed 4, you are also done. The result is binary. It is either a leap year or it is not. There is no middle ground. The math does not care about your feelings or your birthday. It only cares about the remainders. Trust the division.

Reading the verdict on whether it is a leap year

The output tells you exactly how many days February holds. You will see either twenty-eight or twenty-nine. That single number defines the rhythm of that specific year. If the verdict says twenty-nine, you know the calendar stretches slightly to accommodate the extra day. This matters if you are tracking deadlines or celebrating a birthday that only appears every four years. The result is not vague. It is a direct statement of fact about the month ahead.

Understanding this distinction removes guesswork from your planning. You do not need to flip through a physical calendar to confirm the date exists. The checker does the math for you. When you see the leap-year result, you can trust that February 29th is a real day on the grid. It anchors your schedule in reality. There is no ambiguity in the answer. It simply confirms the presence or absence of that final day in the month.

This clarity helps you avoid scheduling errors. If you assumed February had thirty days, you might miss a deadline. The checker prevents that mistake by giving you the precise count. You learn whether the month ends on the twenty-eighth or the twenty-ninth. This knowledge is practical and immediate. It turns a complex rule into a simple fact you can use today. The tool gives you the certainty needed to move forward with confidence.

The century trap that catches most people off guard

Century years expose the weakness in the shortcut “every fourth year.” Both 1900 and 2100 divide by 4, but neither divides by 400, so neither is a Gregorian leap year. The exception is part of the rule, not a hidden adjustment.

The standard test says a year must be divisible by four. Most years pass this check easily. But century years carry an extra burden. They must also be divisible by four hundred to qualify. If they fail that second test, February stays at twenty-eight days. This is why 1900 is not a leap year. It is divisible by one hundred but not four hundred. The extra day simply does not exist for that year.

The year 2000 differs because 2000 ÷ 400 = 5 with no remainder. The same rule makes 2400 a leap year and 2100 a common year. Testing these boundary cases is a useful way to distinguish a complete implementation from one that checks divisibility by 4 alone.

How the Gregorian rule differs from the Julian calendar

For calculation purposes, the relevant contrast is between two rule sets. A simple every-fourth-year rule accepts every year divisible by 4. The Gregorian rule removes the leap day from century years unless they are also divisible by 400. This calculator implements the latter rule and does not ask which calendar a historical source used.

The difference lies in the century years. Under the old Julian system, 1700 would have been a leap year. It is divisible by four. Simple. The Gregorian rule says no. Because it ends in two zeros, it must also be divisible by four hundred. It is not. So 1700 had only twenty-eight days in February. You see the logic in 1900. Divisible by one hundred, not four hundred. Not a leap year. Now look at 2000. Divisible by four hundred. It qualifies. This correction keeps the calendar aligned with the sun. It prevents the drift that plagued the Julian method.

The contrast is visible at the next boundaries: 2100 does not receive February 29, whereas 2400 does. For ordinary years such as 2024, both the simple and Gregorian tests agree. Naming the calendar rule matters whenever the date comes from a system that may use another convention.

Quick checks for historians, programmers, and casual users

Historians often need to verify dates before the Gregorian calendar took over. You might be cross-referencing a letter from 1582 or a treaty from 1700. The rule stays the same, but the context matters. A year like 1900 is a trap. It looks like a leap year because it divides by four. But it fails the century test. It is divisible by 100, not 400. So, February had only twenty-eight days. If you are mapping historical events, that missing day changes the timeline. Do not assume every fourth year gets the extra day. Check the century rule first. It saves you from subtle errors in your research.

Programmers building date libraries must handle edge cases. Your code needs to pass the 2000 test. That year was a leap year because it divides by 400. But 1900 was not. If your algorithm only checks for divisibility by four, it will break. You need a precise conditional statement. It should check if the year is divisible by four. Then it must check if it is divisible by one hundred. If it is, it must finally check for divisibility by four hundred. This logic ensures your software handles the full range of human history correctly.

Casual users just want to know if a year has an extra day. You might be planning a party or checking a birthday. The process is fast. Take the year. If it ends in two zeros, look closer. Otherwise, if it divides by four, it is a leap year. 2024 fits this pattern. It is divisible by four and not by one hundred. You get twenty-nine days in February. Keep it simple. The rule is consistent. You do not need complex math. Just apply the three checks in order. The result is clear and immediate.

Key terms: divisible, century year, and Gregorian

Divisible means you can split a number evenly by another without leaving a remainder. In this context, you divide the target year by four, one hundred, or four hundred. If the result is a whole number with no leftover fraction, the year is divisible by that divisor. This simple arithmetic check forms the backbone of the entire calculation process for any given date.

A century year is any year ending in two zeros. These specific markers trigger the extra layer of testing in the rule. You cannot stop at the first division by four. You must look at the tail end of the number to see if it requires the stricter check against four hundred. This distinction separates ordinary years from the rare exceptions that need deeper scrutiny to determine if February gets that extra day.

The Gregorian calendar is the civil calendar in use in most of the world today. It refined the older Julian system to keep the seasons aligned with the solar year over long periods. The specific leap year logic you are applying here belongs to this modern standard. Understanding these three terms gives you the precise vocabulary needed to follow the logic without confusion or guesswork.

Reference and example table

CaseMeaning
Example 12024 is a leap year because it is divisible by 4 and not by 100.
Example 21900 is not a leap year because it is divisible by 100 but not 400.
Example 32000 is a leap year because it is divisible by 400.

Frequently asked questions

Why is 1900 not a leap year?

The year 1900 is divisible by 100 but not by 400, which breaks the standard rule. This means February in that year had only twenty-eight days instead of twenty-nine.

Is 2000 a leap year?

Yes, 2000 is a leap year because it is divisible by 400. This satisfies the special requirement for century years to have an extra day in February.

How do I check if 2024 is a leap year?

You can see that 2024 is a leap year because it is divisible by 4 and not by 100. This confirms that February in 2024 has twenty-nine days.

What is the rule for century years?

Century years must be divisible by 400 to count as leap years. If a year ends in two zeros but is not divisible by 400, it is not a leap year.

Can I use this for any year?

You can test any year against the complete Gregorian leap-year rule. The tool tells you whether February has twenty-eight or twenty-nine days for that specific year.

Why do we need a special rule for 400?

The extra step for 400 corrects the slight overcounting of leap days over centuries. Without it, the calendar would drift out of sync with the seasons.

What happens if a year is not a leap year?

February ends up with only twenty-eight days in that case. The total number of days in the year remains three hundred and sixty-five.