Free online countdown calculator
Set a target date and time and this calculator counts down the remaining days, hours, minutes, and seconds, updating live every second in your browser.
How to use
- Enter your target date and time using the datetime input.
- The countdown starts immediately and updates every second.
- Press “Share with my numbers” to copy a link with your target pre-filled.
How the countdown works
Each second the calculator computes the difference between the target datetime and the current moment (Date.now()). It breaks the total number of remaining seconds into days, hours, minutes, and remaining seconds:
- Days: total seconds divided by 86,400, floored.
- Hours: remaining seconds after removing whole days, divided by 3,600, floored.
- Minutes: remaining seconds after removing whole hours, divided by 60, floored.
- Seconds: remainder after removing whole minutes.
When the target is in the past, all values reflect how much time has elapsed since the target, and a notice is shown.
Worked example
Target: December 31, 2025 at 23:59:00 local time. Current time: April 19, 2026 at 12:00:00.
Since the target is in the past, the calculator shows elapsed time: roughly 109 days, 12 hours, 1 minute, 0 seconds since that moment.
Notes
- The countdown is driven by your device clock. If the device clock is inaccurate, the countdown will be off by the same amount.
- The page must remain open for the countdown to tick. It does not run in the background.
- Daylight saving time transitions may cause a one-hour jump if the target spans a DST change. This is expected behavior from the browser’s local-time arithmetic.
Frequently asked
How does the countdown update in real time?
What happens when the target date passes?
Does the countdown account for time zones?
Can I share a countdown link with the target date pre-filled?
What is the default target date?
Related calculators
- Date difference calculator
Count the exact number of days, weeks, and months between two dates.
- Add or subtract days calculator
Find the date that is N days before or after a starting date.
- Business days calculator
Count Monday–Friday working days between two dates.
- Weekday calculator
Find the day of the week and week number for any date.