Skip to main content

Duration Calculatorv1.0.0

Subtracts a start time from an end time to return the duration in hours/minutes/seconds, plus the same total in hours, minutes, and seconds alone. Time format toggles between 12-hour (with AM/PM) and 24-hour, and a Now button on either field captures the current device time. If end time falls earlier than start, an Allow Crossing Midnight toggle (default on) adds 24 hours; an optional step-by-step view shows the derivation.

Productivity
Scheduling
Time Management
Reference

Documentation

Calculate the exact elapsed time between any two points in a day. Select a start time and an end time to compute the difference in hours, minutes, and seconds. Switch between 12-hour (AM/PM) and 24-hour time formats to match regional or workplace preferences.

  • Select a time format by choosing 12-hour or 24-hour at the top of the form. In 12-hour mode, you will see AM/PM selectors alongside the hour, minute, and second fields. In 24-hour mode, the AM/PM selectors are hidden and hours range from 0 to 23.
  • Set the Start Time using the Hour, Minute, and Second dropdowns. Press the Now button to auto-fill the current time from your device clock.
  • Set the End Time using the same dropdown structure. Press the Now button next to the end time fields to capture the current moment.
  • Press Calculate to compute the duration, or wait for the automatic calculation which triggers after a brief pause when you change any input. The results section displays the duration in a human-readable format (hours, minutes, and seconds) as well as the total expressed purely in hours, minutes, or seconds for easy reference.
  • Enable Show step-by-step calculation in the Settings panel to view the detailed breakdown of how the duration is computed, including the conversion of both times to total seconds and the subtraction logic.
  • If the end time is earlier than the start time and the Allow crossing midnight option is checked, the calculator assumes the end time falls on the following day and adds 24 hours to the calculation. Uncheck this option to restrict calculations to the same day.
  • Press Reset to clear all inputs, restore default values, and remove saved settings from your browser storage.

Track elapsed time across a wide range of personal and professional scenarios. Whether you are timing a commute, measuring a work shift, or calculating how long a recipe takes to prepare, get an instant and precise answer without manual arithmetic.

  • Workplace: Determine the length of a work shift by entering clock-in and clock-out times. Useful for hourly employees, freelancers, and managers who need to verify timesheet entries or calculate overtime hours.
  • Education: Measure the duration of study sessions, lectures, or exams. Students can track how long they spend on each subject to optimize their study schedules and identify time-management patterns.
  • Cooking: Calculate how long a multi-step recipe takes from start to finish. Enter the time you began preparing ingredients and the time the dish came out of the oven to log total preparation and cooking duration.
  • Fitness: Record elapsed time for workouts, runs, or cycling sessions without relying on a dedicated stopwatch app. Enter the start and finish times after completing an activity to log the duration in your training journal.
  • Travel: Estimate flight or commute duration by entering departure and arrival times. Particularly useful when crossing midnight, such as red-eye flights or overnight train journeys.
  • Healthcare: Track the duration between medication doses to maintain a safe and consistent schedule. Enter the time of the last dose and the current time to verify the gap meets the recommended interval.
  • Event Planning: Compute the running time of events, meetings, or conferences. Compare planned versus actual durations to improve scheduling accuracy for future events.
  • Payroll: Quickly verify the total hours worked in a shift for payroll processing. Convert the result to decimal hours for compatibility with payroll software that requires numeric hour entries.
Inputs, outputs, and what the Duration Calculator computes

The form above accepts the following inputs and produces the outputs listed below. This summary is rendered in the page so the parameters are visible to crawlers, assistive tech, and indexing agents that don't fetch the embedded tool frame.

Inputs

  • 12-hour · default: 12h
  • 24-hour · default: 24h
  • Hour
  • Minute
  • Second
  • AM/PM · default: AM
  • Hour
  • Minute
  • Second
  • AM/PM · default: AM
  • Allow crossing midnight (if end time is earlier than start time, assume next day)
  • Show step-by-step calculation

Controls

Calculate · Reset

Worked example

Press Calculate to compute the duration, or wait for the automatic calculation which triggers after a brief pause when you change any input.