Calculate how many days, hours, minutes, and seconds are left until your next birthday, plus the weekday it falls on and the age you will turn.
Birthday Countdown Formula
The countdown measures the gap between right now and the next time your birthday comes around. First the calculator finds the date of your next birthday; then it converts the time remaining into days, hours, minutes, and seconds.
The number of whole days left is:
D = floor( (T - N) / 86400 )
The hours, minutes, and seconds that remain after the whole days are removed use the remainder of the same difference:
H = floor( ((T - N) mod 86400) / 3600 )
M = floor( ((T - N) mod 3600) / 60 )
S = floor(T - N) mod 60
The age you will turn is the difference between the year of the next birthday and your birth year:
Age = NextBirthdayYear - BirthYear
- T: the time of your next birthday at local midnight, counted in seconds.
- N: the current time, counted in seconds.
- D, H, M, S: the days, hours, minutes, and seconds remaining.
- 86400: the number of seconds in 24 elapsed hours (24 x 60 x 60). Local calendar days crossing daylight-saving changes can be shorter or longer.
- mod: the remainder after dividing, which strips out the larger units already counted.
To find T, the calculator takes the month and day of your birth and pairs them with the current year. If that date has already passed this year, it moves to the same date next year. If you were born on February 29 and the target year is not a leap year, the birthday is counted on February 28. Choosing “Time until a specific date” instead skips the birthday step and counts down to any date you enter.
Countdown Units at a Glance
The countdown reports several units at once. Use this table to move between them or to sanity check a result.
| 1 unit of time | Equals |
|---|---|
| 1 week | 7 days |
| 1 day | 24 hours, or 1,440 minutes |
| 1 hour | 60 minutes, or 3,600 seconds |
| 1 minute | 60 seconds |
How the Next Birthday Date Is Chosen
The countdown always points to the next birthday still ahead of you. The rule depends on whether this year’s birthday has happened yet.
| Situation | Target used |
|---|---|
| Birthday is still ahead this year | This year’s date |
| Birthday already passed this year | Same date next year |
| Birthday is today | Counted as the day itself, 0 days left |
| Born February 29, non-leap year | February 28 |
Example Problems
Example 1. Today is June 19, 2026, and your birthday is July 4. July 4 is still ahead this year, so the target is July 4, 2026. Counting from midnight on June 19, that is 15 days away. Counting from noon on June 19 with the live clock running, you would see 14 days plus the leftover hours, minutes, and seconds.
Example 2. Today is June 19, 2026, and your birthday is January 10. January 10 already passed this year, so the target moves to January 10, 2027. That birthday is about 205 days away, which is roughly 29 weeks plus 2 days. If you were born in 1990, the age you will turn is 2027 minus 1990, which is 37.
Frequently Asked Questions
Why does the seconds value keep changing? The main answer is a fixed snapshot from your last Calculate. In Countdown settings, choose Live clock On and leave Count from date blank to show a separate ticking clock to the same saved target. Editing pauses that clock until you select Calculate again. Live clock is Off by default; a custom Count from date uses local midnight and a fixed result.
What happens on a leap year birthday? If you were born on February 29, February 29 occurs in leap years (divisible by 4, except century years not divisible by 400). In years that are not leap years, the countdown lands on February 28 so you still get a result every year. In leap years it uses the real February 29 date.
Can I count down to something other than a birthday? Yes. Switch the solve for option to “Time until a specific date” and enter any future date, such as a holiday, anniversary, or event. The calculator then shows the same days, hours, minutes, and seconds breakdown for that date without the age step.
