Time Calculator

Duration
—
—Decimal hours
—Total minutes
—Total seconds
—Day rollover

Calculate the duration between two clock times, adjust a clock time, or add and subtract multiple durations. Total durations can exceed 24 hours.

The calculator works in whole seconds and keeps the day offset separate from the displayed 24-hour clock time, so a result that crosses midnight is never hidden.

Calculate a time duration

Enter two 24-hour clock times to get the elapsed hours, minutes, and seconds. When an end time is earlier than the start, the overnight option treats it as a time on the following day.

Add or subtract time

Add or subtract any non-negative number of hours, minutes, and seconds. The displayed clock result wraps to a 24-hour day while a separate day offset preserves the complete answer.

Add multiple durations

Add a row for each duration and choose + or −. For example, 1:30 + 2:45 + 0:50 = 5:05:00. Totals can exceed 24 hours or be negative. Blank rows are ignored.

How to calculate time online

  1. For elapsed time, choose Time duration and enter the start and end clock times.
  2. Keep the next-day option selected when an earlier end time means the range continues past midnight.
  3. To adjust a clock time, choose Add or subtract, select the operation, and enter whole hours, minutes, and seconds.
  4. Read the full duration or result time together with Decimal hours and Day rollover, then copy the result if needed.
  5. To total several durations, choose Add multiple durations, add or remove rows, and select + or − for each. Read the total and calculation below.

Time Calculator FAQ

How do I calculate a time range that crosses midnight?

Leave Treat an earlier end time as the next day selected when the range crosses midnight. Clear it only when you intentionally want the same-day subtraction shown as a negative duration.

What is the difference between Time duration and Add or subtract?

Time duration finds the difference between two clock times. Add or subtract adjusts one clock time. Add multiple durations totals a list of durations without a start time.

What happens when I add or subtract more than 24 hours?

The clock result wraps within 24 hours, while Day rollover reports how many days forward or backward the full calculation moved. This keeps additions such as 30 hours from looking like a simple 6-hour result.

Does the calculator account for dates, time zones, daylight saving, or breaks?

No. The tool calculates clock times and durations; it does not apply calendar dates, time zones, daylight saving changes, work schedules, or automatic break deductions.

How do I add several durations without a start time?

Choose Add multiple durations. Enter each duration as hours:minutes or hours:minutes:seconds and choose + or − for each row. The result is a total duration, not a clock time: 23:00 + 2:00 gives 25:00:00, not 01:00:00.

Code Formatters

Format and beautify Java, Python, JavaScript, JSON, HTML and more; adjust indentation, spacing and line breaks.

More tools

Audio Editing & Effects

Trim, join or split recordings, remove silence or noise, and adjust volume, speed, pitch or channels.

More tools

Spreadsheet Tools

Open and edit CSV or Excel sheets, format tabular text, and convert CSV to Excel or SQL.

More tools

Markdown Tools

Write and preview Markdown, render Mermaid diagrams, and convert Markdown, HTML and tables between formats.

More tools

Text Tools

Compare passages, count words and keywords, sort or replace lines, and view DOCX text.

More tools

Dictionaries

Look up Chinese meanings, synonyms and antonyms, or find IPA pronunciations in multiple languages.

Audio Conversion & Playback

Convert between MP3, WAV, FLAC and more, play audio or raw PCM, and inspect or edit audio metadata.

JSON & Data Tools

Inspect, compare and validate JSON; test JSONPath expressions, or convert data to CSV, YAML and XML.

More tools

Speech Tools

Transcribe audio to text, generate speech from text, or record your voice in the browser.

Video Tools

Convert and compress video, trim or join clips, resize frames, and extract audio.

More tools

Video Playback & Recording

Play local or streaming video, record your screen or camera, and use your camera as an online mirror.

PDF Tools

Compress or merge PDFs, split and rearrange pages, convert pages to images, and view or compare documents.

More tools

Image Tools

Convert image formats, resize or crop photos, compress files, compare pictures, and extract text with OCR.

More tools

Image Creation

Capture and beautify screenshots, turn text into images or GIFs, draw on a whiteboard, and create word clouds or favicons.

More tools

Subtitle Tools

Edit SRT or VTT captions with a video preview, shift timing, convert formats, and manage subtitle tracks.

More tools

Archive Tools

Open ZIP, 7Z, RAR or TAR files, extract selected contents, and create new archives with optional ZIP/7Z passwords.

Encoders | Decoders

Encode and decode Base64 or Base32, escape URLs, HTML and Unicode text, and inspect JWT contents.

More tools

Number Tools

Convert number bases and values between binary, decimal and hex; turn numbers into words or text into binary.

More tools

Calculators

Work out percentages and fractions, summarize statistics, and calculate grades, discounts or aspect ratios.

More tools

Time Tools

Show an online clock, run a countdown or stopwatch, and calculate dates, ages or time-zone differences.

More tools

Network Tools

Check your IP and IPv6 connection, inspect HTTP requests or HAR files, and calculate CIDR address ranges.

Unit Conversions

Convert length, weight, temperature, data storage and other units.

Color Tools

Convert HEX, RGB and HSL values, extract colors from an image, check contrast, or test your display with solid colors.

QR Codes & Barcodes

Generate and scan QR codes or barcodes, including QR codes for links and Wi-Fi networks.

Developer & Security Tools

Generate hashes, UUIDs and passwords, test regular expressions, create URL slugs and check file permissions.

More tools

Utility Tools

Check screen resolution and refresh rate, measure with a screen ruler, test keys, or read from a teleprompter.

More tools

Games

2048, Minesweeper, Sudoku, Gomoku, Tank Battle

More tools