Skip to main content
True Calculator

Hours Calculator

Count the hours and minutes between two times, including overnight shifts. See the total in decimal hours too.

Day span

Hours between

8.50 h

As hh:mm

08:30

In minutes

510

In days

0.00

Full 24-hour days

Choose “next day” when the end time falls after midnight, such as an overnight shift.

Hours Calculator on True Calculator gives you an instant, accurate answer with no sign-up and no app install. Count the hours and minutes between two times, including overnight shifts. See the total in decimal hours too. Every result shows the formula and a worked example so you can verify the calculation yourself, and all values are computed in your own browser — your numbers never leave your device.

Popular uses: hours calculator · how many hours between times · hours between two times

How We Calculate

This calculator uses standard time arithmetic on the 24-hour clock. All calculations are performed instantly in your browser using JavaScript — no data is sent to any server.

Time-zone offsets follow the standard UTC-based world time system. Daylight saving periods for major cities are noted where they apply.

When to Use This Calculator

Counting hours between two times is one of the most common time calculations, and this calculator does it in seconds. Employees use it to verify their daily working hours before filling time sheets, and managers use it to check attendance records without manual arithmetic. Payroll staff convert the results into decimal hours, like 8.5, for salary calculations. Students use it to measure study sessions or the time between classes. Freelancers track billable time on client projects by counting hours between login and logout. Parents measure how long a child's school day or nap lasts, and travellers calculate flight and train durations between departure and arrival times. The calculator shows the result four ways at once, in decimal hours, hh:mm, total minutes and days, so it fits payroll spreadsheets and written records with no further conversion.

How to Use This Calculator

  1. Step 1: Pick the start time of your shift or activity, such as 09:00.
  2. Step 2: Pick the end time, such as 17:30.
  3. Step 3: Choose "same day" or "next day" depending on whether the end falls after midnight.
  4. Step 4: Read the hours in decimal form, in hh:mm format, in minutes and in days.

Worked Example

A retail store manager in Kochi wants to verify the hours recorded on her staff's time sheets. A staff member works from 09:00 to 17:30, so she enters both times with the same-day option and gets 8 hours 30 minutes, which is 8.5 decimal hours and 510 minutes in total. Another employee runs the night shift from 22:00 to 06:30, so she selects "next day", and the calculator correctly returns 8 hours 30 minutes across midnight. For a colleague who works a full rotation from 09:00 to 09:00 the next day, the calculator shows 24 hours exactly, reported as 1 day with the hh:mm format showing 24:00.

Tips and Common Mistakes

  • Tip 1: Use the same-day option for normal shifts and the next-day option whenever the end time is after midnight.
  • Tip 2: Use the decimal hours result, like 8.5, for payroll, since pay is usually calculated in decimal hours.
  • Tip 3: For a 24-hour rotation, set both times the same and choose "next day" to get exactly 24 hours.
  • Mistake 1: Choosing "same day" for an overnight shift, which makes the calculator reject the times because the end comes before the start.
  • Mistake 2: Forgetting to subtract unpaid breaks, since this tool measures the raw gap between the two clock times.

Frequently Asked Questions

How do I count hours between two times?

Enter the start and end times and choose whether the end is on the next day. For a 09:00 to 17:30 shift, you get 8 hours 30 minutes.

What should I choose for an overnight shift?

Select "next day" when the end time is after midnight, such as a 22:00 to 06:30 night shift. The calculator counts the hours correctly across midnight.

What is the difference between decimal hours and hh:mm?

Decimal hours express the total as a fraction, like 8.5 hours. The hh:mm format keeps hours and minutes separate, like 08:30. Both are shown in the results.

Can I see the result in minutes too?

Yes, the total in minutes is displayed alongside hours. For example, 8 hours 30 minutes is 510 minutes, which is useful for payroll and time tracking.

Why does the calculator reject an end time before the start?

On the same day, an end time before the start would give a negative duration. Choose "next day" if the end actually falls after midnight.

You might also need

Related calculators from other categories