What is date difference calculator?
A date difference calculator measures the gap between two calendar dates. It is useful for project plans, contract terms, pregnancy and travel countdowns, notice periods, warranties and billing cycles.
The result is shown in several ways at once. You get years, months and days for easy reading, the total number of days for formulas, and a count of weekdays so you can plan work time.
How to use the date difference calculator
- Enter a start date and an end date. The order does not matter.
- Press Calculate.
- Read the full difference, then check the weekday count if you need working days.
How the date difference calculator works
Total days are found by converting both dates to a day number and subtracting. Years, months and days are found by borrowing, just like manual subtraction. Weekdays are counted by stepping through each date from the start and skipping Saturdays and Sundays. Public holidays are not removed.
Worked example
Common uses of the date difference calculator
- Counting the length of a project, trip or lease.
- Finding how many working days remain before a deadline.
- Checking the days between an invoice date and a payment date.
- Measuring the gap between two life events, such as a wedding and a first child.
- Finding the length of a notice period or a warranty.
Tips and common mistakes
For a business deadline, take the weekday count and subtract any public holidays in your country.
Whether the end date is included is a common source of confusion. This tool counts the number of nights between the dates, so add one day if you want to count both the first and last day.
Background: what to know before you rely on it
Calendar arithmetic is full of small traps. A month can be 28, 29, 30 or 31 days, so two months after 31 January is not a fixed number of days. Counting inclusive or exclusive of the end date also changes the answer by one. Businesses often count weekdays only, while courts and contracts may count every calendar day. The safest habit is to write the rule you use next to the number, for example 59 days, end date not counted. This calculator shows years, months and days as well as totals, so you can pick the form that matches your document.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all date and time tools, or browse the full list of tools.
Field by field guide
- Start date: Pick a date from the calendar.
- End date: Pick a date from the calendar.
Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.
Years, months and days: the details
Calendar differences are not a simple division. A month can have 28, 29, 30 or 31 days, so the tool counts full years first, then full months, then the days left over. Counting from 31 January to 28 February gives 28 days or 1 month depending on the rule, which is why the days total is shown next to the years, months and days breakdown.
Leap years add 29 February every four years, except for century years that are not divisible by 400. The year 2000 was a leap year and 1900 was not. The calculator handles this for you. Business days are counted as Monday to Friday and do not remove public holidays, because those depend on your country.
- Decide whether the end date counts. Contracts often include it, age calculations do not.
- Use business days for delivery and notice periods, then remove local holidays by hand.
- Keep the result with the two dates you used so you can check it later.
Frequently asked questions
How many days are between two dates?
Subtract the earlier date from the later one. This tool does it for you and also shows weeks, months, years and weekdays.
Does it count the end date?
No. It counts the gap between the dates. Add one day if you want both ends included.
Does it skip public holidays?
No. It skips Saturdays and Sundays only.
Can the end date be earlier than the start date?
Yes. The tool swaps them automatically.
Related tools
Days Until Calculator
Pick a date and the calculator shows how many days remain until it, or how many have passed since it. It...
Date and Time ToolsAge Calculator
An age calculator finds the time between your date of birth and a chosen date. Enter both dates to get...
Date and Time ToolsAdd or Subtract Days From a Date
Enter a start date, choose add or subtract, then a number of days, weeks, months or years. The...
Date and Time ToolsTime Zone Converter
Choose a date and time and the zone it applies to. The converter shows the same moment in major cities...
Date and Time ToolsTime Calculator
Enter two durations in days, hours, minutes and seconds, choose add or subtract and see the result plus...
Date and Time ToolsWeek Number Calculator
Pick any date to find its ISO 8601 week number, the Monday to Sunday dates of that week, the day of...
Also available in other languages: Calculadora de diferencia entre fechas (Español) · Calcul de différence entre deux dates (Français) · Datumsrechner (Deutsch) · Calcolo differenza tra date (Italiano) · Calculadora de diferença entre datas (Português (Brasil)) · حاسبة الفرق بين تاريخين (العربية) · Dagen tussen twee datums (Nederlands) · Tarih farkı hesaplama (Türkçe) · 日付の差の計算機 (日本語) · 날짜 차이 계산기 (한국어) · Kalkulator dni między datami (Polski) · Kalkulator selisih tanggal (Bahasa Indonesia)
More free tools people use next
- Hash Generator: A hash is a fixed length fingerprint of your text. Enter text to get its SHA 1, SHA 256,...
- Image Compressor and Resizer: Choose an image, set a maximum width, quality and format, and download a smaller file....
- Image to Base64 Converter: Choose an image and get its Base64 data URL, plus ready to paste HTML and CSS snippets....
- Random String and ID Generator: Choose a length, a character set and an optional prefix. The generator creates secure...
- GPA Calculator: Enter each course as a letter grade and its credit hours. The calculator multiplies grade...
- Favicon Generator: Choose a square or near square image and the generator creates all the common favicon...
- CSS Box Shadow Generator: Set the offsets, blur, spread, color and opacity to see the shadow on a preview card,...
- Zakat Calculator: Enter your cash, gold, silver, investments, business assets, receivables and debts, plus...
- Image Color Picker: Choose an image and the tool finds its six most common colors, shows them as swatches...
- PDF Compressor: Choose a PDF and a quality level. The tool rebuilds each page as a compressed image and...
- Business Days Calculator: Choose a start and an end date and your weekend days. The tool counts working days,...
- Due Date Calculator: Enter the first day of your last period. The calculator adds 280 days to estimate your...
- Name Combiner: Type two names and the tool blends them at different points and ranks the results by how...
- Fantasy and DnD Name Generator: Choose a race and press Generate. The tool builds fantasy names from syllables, with an...
- Body Fat Calculator: Enter your sex, height, neck and waist (plus hip for women) in centimeters. The...
- Budget Calculator: Enter your monthly income after tax and choose a split. The calculator shows how much to...
- HTML Formatter: Paste your HTML and press Format. Each tag is placed on its own line with nested elements...
- YouTube Thumbnail Grabber: Paste a YouTube video link or ID. The grabber shows the public thumbnail in several sizes...
- Video Trimmer: Choose a video, enter the start and end in seconds and press Trim video. The clip is...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. For legal deadlines, confirm how your contract or court counts days.