What is a days until calculator?
A days until calculator tells you how much time is left between a start date and a future target date. By default the start date is today, so the most common question it answers is simple: “How many days until this date?” You can also pick any start date to measure the gap between two future or past points in time.
The tool is useful for counting down to a deadline, a birthday, a holiday, a launch, an exam, or the end of a contract. Instead of expressing the result only in days, you can switch the output to weeks, months, years, hours, minutes, seconds, or a detailed breakdown such as “1 year 2 months 5 days”.
How does the calculator work?
You provide two dates:
- a start date (which defaults to today), and
- a target date you are counting toward.
The calculator subtracts the start date from the target date and reports the remaining time. Choosing a different unit in the “show result in” selector simply re-expresses the same gap in that unit.
Formula
The remaining number of days is the difference between the two dates:
To convert the result into other units, divide the day count by the length of that unit:
If the target date is earlier than the start date, the gap is negative — the target is already in the past.
Worked examples
Example 1: Days until the end of the month
Start date: January 1, 2025. Target date: January 31, 2025.
There are 30 days until January 31, 2025.
Example 2: Days until next year
Start date: January 1, 2025. Target date: January 1, 2026.
Because 2025 is not a leap year, the gap is 365 days.
Example 3: Weeks until a date two weeks away
Start date: January 1, 2025. Target date: January 15, 2025. That is 14 days, which the calculator can express in weeks:
So there are 2 weeks until January 15, 2025.
Example 4: Same start and target date
If the start date and the target date are identical — for instance both January 1, 2025 — the remaining time is 0. There is nothing left to count down.
Practical notes
- Leaving the start date at today gives a live “days until” countdown to your target date.
- Leap years are handled automatically, so a span that crosses February 29 counts the extra day.
- A negative result means the target date has already passed relative to the start date.
- The detailed format is handy for long countdowns where a single unit (such as 540 days) is harder to picture than “1 year 5 months 24 days”.