Clock Duration Calculator

Calculate the elapsed time between two clock times. Enter a start time and end time using hours, minutes, and AM/PM. The calculator shows the duration in hours and minutes, total minutes, and decimal hours. Durations that span midnight are handled automatically.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard method  Duration = end time minus start time (in total minutes). Overnight spans handled by adding 24 hours if end is before start.

1. Start Time

2. End Time

Please enter valid times (hour 1-12 for AM/PM or 0-23 for 24-hour, minutes 0-59).

Elapsed Duration

Duration
8h 30m
Hours and minutes
Total Minutes
510
Elapsed minutes
Decimal Hours
8.50
For timesheets
Overnight?
No
Spans midnight

Calculation Breakdown

Start time-
End time-
Start (minutes since midnight)-
End (minutes since midnight)-
Overnight adjustment-
Elapsed minutes-

Duration in Different Units

Hours and minutes-
Decimal hours-
Total minutes-
Total seconds-
Fraction of a day-
Fraction of a week-
Result: Enter your start and end times above to calculate the duration.

How to Calculate Duration Between Two Times

The duration between two clock times is found by converting both times to the total number of minutes since midnight, then subtracting the start from the end. If the result is negative (meaning the end time is earlier in the day than the start time), add 1,440 minutes (the number of minutes in 24 hours) to get the correct overnight duration.

The Formula

Convert each time to minutes since midnight:

Then: Elapsed minutes = End minutes - Start minutes

If Elapsed minutes is negative or you have selected "next day": Elapsed minutes = Elapsed minutes + 1,440

To convert elapsed minutes to hours and minutes: Hours = floor(Elapsed / 60), Minutes = Elapsed mod 60

To convert to decimal hours: Decimal hours = Elapsed minutes / 60

AM/PM to 24-Hour Conversion

12-hour24-hourMinutes since midnight
12:00 AM (midnight)00:000
6:00 AM06:00360
9:00 AM09:00540
12:00 PM (noon)12:00720
5:30 PM17:301,050
11:59 PM23:591,439

Worked Example

Default inputs: start 9:00 AM, end 5:30 PM.

This matches the calculator output of 8h 30m (510 total minutes, 8.50 decimal hours).

Overnight Duration Example

Start 10:00 PM, end 6:30 AM (next morning):

Common Uses

Related Calculators

Method: Standard time arithmetic. Duration in minutes = (end hour x 60 + end minutes) - (start hour x 60 + start minutes). If the result is negative, 1,440 minutes (24 hours) is added to reflect a span across midnight. Decimal hours = total minutes / 60.

This calculator works with clock times only and does not account for daylight saving transitions. For scheduling purposes that cross a daylight saving boundary, adjust times manually by one hour as appropriate.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.