---
slug: elapsed-time-calculator
title: "Elapsed Time Calculator"
category: date
updated: 2026-11-17
canonical: https://calcseed.com/c/date/elapsed-time-calculator/
html: /c/date/elapsed-time-calculator/
---

# Elapsed Time Calculator

Calculate the time elapsed between two times of day in hours and minutes. Handles times that cross midnight.

## Quick answer

**Quick answer:** with the default inputs (9, 15, 17, 45), the elapsed time is **510**. At these inputs: hours = **8**, minutes = **30**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Start hour (0–23) | 9 |  |
| Start minutes | 15 |  |
| End hour (0–23) | 17 |  |
| End minutes | 45 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Elapsed time | 510 |  |
| Hours | 8 |  |
| Minutes | 30 |  |

## Formula

```text
elapsed minutes = end hour × 60 + end minute − (start hour × 60 + start minute), plus 1,440 if the result is negative
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Start hour (0–23) | number |  | 9 |
| Start minutes | number |  | 15 |
| End hour (0–23) | number |  | 17 |
| End minutes | number |  | 45 |

## Outputs

| Result | Format |
| --- | --- |
| Elapsed time | primary |
| Total minutes | number |
| Hours | number |
| Minutes | number |

## How it works

### What this calculator measures

Enter a start time and an end time in 24-hour format and the tool returns the duration between them, in total minutes and split into hours and minutes. With the defaults of 09:15 to 17:45 the result is **510 total minutes**, which is **8 hours 30 minutes** — a standard full-time workday in most US payroll systems. The output is a duration, not a clock reading, so it can be added, subtracted or multiplied by an hourly rate.

### How elapsed time is calculated

Both times are first converted to minutes since midnight: 09:15 becomes 9 × 60 + 15 = 555, and 17:45 becomes 17 × 60 + 45 = 1,065. Subtracting start from end gives 510 minutes, which the tool splits back into hours with floor division (510 ÷ 60 = 8 remainder 30). The conversion-to-minutes step is what makes the arithmetic safe — you never borrow 60 minutes from the hour column by hand.

#### Crossing midnight

A night shift is the case that breaks naive subtraction. From 23:00 to 01:00 the end converts to 60 minutes since midnight while the start is 1,380, so the raw difference is 60 − 1,380 = −1,320, which is meaningless as a duration. The calculator detects the negative and adds 1,440 — the number of minutes in a full day — giving −1,320 + 1,440 = 120 minutes, or 2 hours. The same rule handles any overnight span up to just under 24 hours: 22:30 to 06:15 returns 465 minutes (7 h 45 min).

### Worked example with the default times

Start 09:15, end 17:45. Converting both to minutes since midnight gives 555 and 1,065. The difference is 1,065 − 555 = **510 minutes**. Splitting back into hours: floor(510 ÷ 60) = 8, remainder 30, so **8 h 30 min**. If you bill by the quarter hour, that is 34 quarter-hours; if you round to the nearest quarter under common rounding rules, it stays 8.5 hours.

### Reference durations and rounding bands

| From | To | Elapsed | Nearest quarter hour |
| --- | --- | --- | --- |
| 09:00 | 17:00 | 8 h 0 min | 8.00 h |
| 09:15 | 17:45 | 8 h 30 min | 8.50 h |
| 09:10 | 17:40 | 8 h 30 min | 8.50 h |
| 23:00 | 01:00 | 2 h 0 min | 2.00 h |
| 00:00 | 23:59 | 23 h 59 min | 24.00 h |

The third row shows why minute-level precision matters: 09:10 to 17:40 is exactly the same 8 h 30 min as the default example, just shifted ten minutes. The last row is the rounding trap — 23 h 59 min rounds to a full 24-hour day at the nearest-quarter rule, which is why many payroll systems use &ldquo;round to nearest 5 minutes&rdquo; instead.

### How timeclock rounding rules change the answer

US payroll practice recognizes several rounding conventions, and each one rewrites the raw minutes before pay is computed. Under 15-minute rounding, 09:07 becomes 09:00 and 09:08 becomes 09:15, so two employees clocking in a minute apart can be paid differently. The 7/8 rule splits each quarter at 7 minutes elapsed: minutes 1–7 round down and 8–14 round up within each 15-minute band. Decimal systems skip rounding entirely and pay 8.5 hours as 8.50. Because the FLSA permits these conventions, always check which rule your employer uses before disputing a timesheet — the raw elapsed minutes from this calculator are the starting point for all of them.

#### Where each convention bites

- Nearest 15 minutes: a 510-minute shift stays 8.50 h, but 09:08 in becomes 09:15 and adds 0.25 h of paid time
- Nearest 5 minutes: 09:07 rounds to 09:05, keeping drift within 2 minutes per punch
- Exact decimal: 510 minutes converts to 8.5 h with no rounding at all
- Down-only rounding: 510 minutes stays 8.5 h, but 509 minutes drops to 8.4 h under tenth-hour rounding

### Common mistakes when calculating elapsed time

- Subtracting hours and minutes separately — 17:45 minus 09:15 works because the minutes align, but 09:45 to 17:15 needs a borrow; convert to minutes first
- Forgetting the midnight rollover — a night shift from 23:00 to 01:00 is 2 hours, not −22 hours
- Treating the result as a clock time — 510 minutes elapsed from 09:15 lands at 17:45, but the duration itself is 8 h 30 min
- Mixing 12-hour input with 24-hour arithmetic — enter hours in the 0–23 range or convert AM/PM first, otherwise 07:00 PM becomes 7 instead of 19
- Spanning more than one day — this tool measures within a single 24-hour cycle; multi-day spans need a date-based tool

To read times in the 24-hour format this tool expects, the Military Time Converter switches between 24-hour and AM/PM notation, and the Minutes to Hours Converter converts a raw minute total into decimal or hours-and-minutes form.

## FAQ

### How much time is between 09:15 and 17:45?

510 minutes, which is 8 hours and 30 minutes. In minutes-since-midnight terms, 1,065 − 555 = 510.

### How do I calculate elapsed time between two clock times?

Convert both times to minutes since midnight, subtract the start from the end, then split the total back into hours and minutes by dividing by 60. The calculator performs all three steps.

### What happens when the period crosses midnight?

The calculator adds 1,440 minutes (one full day) whenever the raw difference is negative, so 23:00 to 01:00 returns 120 minutes instead of a negative value.

### How long is a night shift from 22:30 to 06:15?

465 minutes, or 7 hours 45 minutes. The midnight crossing triggers the +1,440 correction and the span is measured to the morning end time.

### What is 510 minutes in decimal hours?

8.5 hours, since 510 ÷ 60 = 8.5. For payroll, decimal hours are what most systems expect on the timesheet line.

### Why does 23:59 round to a full day?

Under nearest-quarter rounding, 23 h 59 min is one minute short of 24.00 h and rounds up. Any rule that rounds to 15 or 30 minutes has this edge; nearest-5-minute rules avoid it.

### How does 7/8 rounding work on a timesheet?

Within each 15-minute band, the first 7 minutes round down and the last 8 round up. Clocking in at 09:08 pays from 09:15; clocking in at 09:07 pays from 09:00.

### Can I measure a shift longer than 24 hours?

No. This calculator works within one 24-hour cycle and wraps anything longer. For multi-day spans, use a date-and-time difference tool that takes full dates as inputs.

### What is the elapsed time from 00:00 to 23:59?

23 hours 59 minutes, or 1,439 minutes — one minute short of the full 1,440-minute day. It rounds to 24.00 h under nearest-quarter rules.

## Method and sources

Methodology: Calendar logic follows the proleptic Gregorian calendar (ISO 8601) with correct leap-year handling.

Last updated: 2026-11-17.
- Time-of-day arithmetic with midnight rollover.
