How to count days between two dates

Working out how many days lie between two dates is the kind of sum that's easy to get slightly wrong. The answer is often one day out, or a few days out after crossing several months. This guide explains where those errors come from, gives a reliable way to count by hand when you don't have a calculator, and shows how to turn a day count into weeks or months without fooling yourself.

Turn each date into a day number, subtract, then decide whether the first day counts. Most mistakes come from skipping that last decision or from assuming every month has 30 days.

The off-by-one trap

Picture a fence ten metres long with a post every metre. It has ten gaps but eleven posts. Dates work the same way. Between 1 and 10 March there are nine gaps from one day to the next, but ten days if you count each square on the calendar. Neither answer is wrong. The question decides which one you need.

Ask yourself which you're measuring: time passing, or days occupied. Time passing (how long until a birthday, how many nights in a motel) counts the gaps. Days occupied (how many days a festival runs, how many days a person was on site) counts the squares, which is the gap plus one. A summer trip from 19 December 2026 to 4 January 2027 is 16 nights away, but 17 days if both travel days count.

Counting by hand with day-of-year numbers

For two dates in the same year, the most reliable manual method is to give each date its position in the year and subtract. Add up the lengths of the months before the date, then add the day of the month. Here are the month lengths:

MonthDays
January31
February28 or 29
March31
April30
May31
June30
July31
August31
September30
October31
November30
December31

Take 14 March 2026 and 2 August 2026. Before March come January and February, 31 plus 28 in a common year, so 14 March 2026 is day 73. Before August come seven months totalling 212 days, so 2 August 2026 is day 214. Subtracting gives 141 days between them, or 142 counting both. If the dates are in different years, count to the end of the first year, add any whole years in between (365 or 366 each), then add the day number in the last year.

Remembering the month lengths

The rhyme "thirty days has September, April, June and November" covers the short months, and February is the odd one out. Another trick is the knuckle method: make a fist and run along your knuckles and the dips between them, starting with January on the first knuckle. Knuckles are the 31-day months; dips are the shorter ones. When you reach July on the last knuckle, start again on the first for August, so July and August both land on knuckles, matching their 31 days.

Weeks are easy, months aren't

Converting days to weeks is plain division: divide by seven and the remainder is extra days. A baby born on 20 May 2026 is 136 days old on 3 October 2026, which is 19 weeks and 3 days.

Months are harder because they're different lengths. Counting calendar months means stepping forward month by month, then counting the days left over. From 18 November 2025 to 3 February 2027 is 1 year, 2 months and 16 days in calendar terms, and 442 days in total. When a month step starts on a day that doesn't exist in the shorter month, like the 31st, it lands on that month's last day instead. Dividing a day count by 30 or 30.4 gives a rough month figure, but don't use it where a month needs to be exact.

"28 days" and "one month" aren't the same

Notice periods, trial periods and return windows are written in different units, and they don't line up. Starting on 5 October 2026, 28 days later is 2 November 2026, while one calendar month later is 5 November 2026. Twelve four-week periods come to 336 days, nearly a month short of a year. When you're working out a deadline, use the unit the document uses, and check whether it says the period starts on the day of the event or the day after.

Leap years and time zones

Any range that includes the end of February in a leap year has one extra day, so a count that crosses 29 February 2028 is a day longer than the same dates in 2027. Time zones matter less than people fear. If you're counting calendar dates, as most day counts do, daylight saving and time differences don't change the answer. They only matter when the question is about hours or the exact moment something starts, such as an online sale that opens at midnight in another country.

A quick checklist

  • Decide first: gap between the dates, or every day including both ends?
  • Use real month lengths, never an average, for an exact answer.
  • Check for 29 February in the range.
  • For deadlines, use the document's own unit and starting rule.

The days between dates calculator does all of this and shows the count in weeks and calendar months as well. To find the date a number of days away, use add or subtract days; for business days, see the guide to working days and public holidays.

Last reviewed: