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 = (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 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 one day (24 x 60 x 60).
- 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. Measured 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? When the live countdown is on, the calculator recalculates every second using the current time, so the seconds, minutes, and hours tick down in real time. Turn the live countdown off in the advanced options if you want a fixed snapshot, or set a custom count from date to freeze the result.
What happens on a leap year birthday? If you were born on February 29, your birthday only appears on the calendar every four years. 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.
