Like every spreadsheet, Google Sheets stores a time as a fraction of a day: noon is 0.5, 6:00 PM is 0.75, and an 8-hour shift is a third of a day. Subtract two times and you get a small decimal; multiply by 24 and you get decimal hours. That single fact explains every formula below and every strange result above it. If a subtraction ever shows you a date in 1899 or a tiny number like 0.35, you are looking at the raw fraction before it has been converted or formatted - the maths is fine, the display is lying.
A layout that survives real use
Use five columns: day, start, finish, unpaid break minutes, and hours. Type times the way you say them - 9:00 AM, 5:30 PM - and Sheets will recognise them. Put the break in its own column as a plain number of minutes. Then write the hours formula once, in the first row, and drag it down the column; Sheets adjusts the row numbers as it copies. One row per day, one week per block, and a total row at the bottom. Because the file lives in Google Drive, you can update it from your phone in the car park and find it waiting, already totalled, when you sit down at a computer. Share it with view-only access if a manager wants to see it, and keep editing rights to yourself.
The formulas
For decimal hours, the daily formula in E2 is:
=(C2-B2)*24 - D2/60
A 9:00 AM start, a 5:30 PM finish and a 30-minute break returns 8.00. For overnight shifts, wrap the subtraction in MOD so a finish earlier than the start still works:
=MOD(C2-B2,1)*24 - D2/60
Use the MOD version everywhere and you never have to remember which rows are nights. If you prefer hours and minutes over decimals, format the result column as Duration (Format, Number, Duration) and drop the multiplication: =MOD(C2-B2,1) - D2/1440, where 1440 is the minutes in a day. Durations display as 8:30:00 style totals and, unlike clock-time formats, happily run past 24 hours when the week is summed.
Totals, overtime and pay
The weekly total is a plain =SUM(E2:E8) over the decimal column. The overtime split uses the same two helpers as any spreadsheet: regular hours are =MIN(total,40), overtime hours are =MAX(total-40,0). Multiply regular hours by the rate, overtime hours by the rate times 1.5, and add. For a 42.25-hour week at $20 an hour: 40 x $20 = $800, plus 2.25 x $30 = $67.50, giving $867.50 gross. Put the rate in its own labelled cell - say G1 - and refer to it as $G$1 in the formulas, so a pay rise means editing one cell instead of hunting through every formula on the sheet. That small habit is the difference between a timesheet and a trap.
A worked week
| Day | Start | Finish | Break (min) | Hours |
|---|---|---|---|---|
| Monday | 8:00 AM | 4:30 PM | 30 | 8.00 |
| Tuesday | 8:00 AM | 5:15 PM | 30 | 8.75 |
| Wednesday | 8:00 AM | 4:30 PM | 30 | 8.00 |
| Thursday | 9:30 PM | 5:30 AM | 30 | 7.50 |
| Friday | 8:00 AM | 6:30 PM | 60 | 9.50 |
| Total | 41.75 |
Thursday is the row that proves the MOD formula: a night shift sitting unnoticed in the middle of a day-shift week, returning 7.50 like any other row. The week's 41.75 hours split into 40 regular and 1.75 overtime - at $20 an hour, $800 plus $52.50 is $852.50. If your days are worked out somewhere else and you only need the weekly method, our guide on totalling a week of hours covers the rules behind the split.
Keeping the sheet tidy month after month
A timesheet that lives in the cloud tends to live forever, and an endless single tab becomes hard to read by March. The structure that works is one tab per pay period, named by its dates - Nov 10 to Nov 23, say - with an identical layout on every tab. Duplicate the tab rather than building a new one, and the formulas, formats and rate cell come across exactly as tested. Keep a simple summary tab at the front that pulls each period's total with a reference such as ='Nov 10 - Nov 23'!E9, and you build a year of totals without ever retyping a number. Retyping is the enemy: every figure on the summary should be a link to a figure on a period tab, so correcting a day corrects the year automatically.
Two more habits are worth adopting early. Protect the formula ranges (Data, then Protected sheets and ranges) so a tired thumb on your phone cannot overwrite a formula with a typed time - on mobile this is the single most common way these sheets break, and the damage is invisible until the totals stop making sense. And when a period closes, use File, then Download, then PDF to keep a frozen copy outside the live sheet. The live file is your working tool; the PDFs are your records, and records are what settle arguments.
Sheets or Excel?
The honest answer is that the arithmetic is identical, and you should use whichever you already have. Sheets wins on access and sharing: free, in the browser, on your phone, with the file saved automatically as you type. Excel wins on raw power and on working offline with big files. The formulas in this guide and in our Excel guide transfer between the two almost word for word, so learning one teaches you the other.
Try it the fast way
To check a single day without touching a formula, the hours calculator returns paid hours from a start, a finish and a break, with overnight shifts handled. And when you need to add plain lengths of time together - two shifts, a project estimate, a journey - the time calculator on the homepage is built for exactly that.
Frequently asked questions
Why does Google Sheets show a date instead of hours?
Because Sheets stores times as fractions of a day counted from December 30, 1899, and sometimes displays a subtraction result as a date or clock time. Select the result cell and apply Format, then Number, then Duration to show hours and minutes, or multiply the subtraction by 24 and format as a plain number to get decimal hours.
How do I format a cell as duration in Google Sheets?
Select the cell or column, open Format, then Number, then Duration. The cell will show totals as hours:minutes:seconds, such as 39:30:00 for a 39 hour 30 minute week, without rolling over at 24 hours the way a clock-time format does. For decimal hours instead, skip formatting and multiply your formula by 24.
What is the formula for an overnight shift in Google Sheets?
Use MOD: =MOD(C2-B2,1)*24 gives decimal hours even when the finish time is earlier than the start time. MOD wraps the negative difference around the day, so 10:00 PM to 6:00 AM returns 8. Subtract break minutes divided by 60 at the end, exactly as with a day shift.
How do I total a week of hours in Google Sheets?
If your daily hours are decimal numbers, a plain =SUM over the column works. If they are durations, SUM also works, but make sure the total cell itself is formatted as Duration so a 39-hour week does not display as a clock time. Keep one row per day and let the sheet do the adding - never type a weekly total in by hand.
Can I round hours to the nearest 15 minutes in Google Sheets?
Yes. MROUND works in Sheets just as it does in Excel: =MROUND((C2-B2)*24,0.25) rounds decimal hours to the nearest quarter hour. Round the daily total once, at the end of the calculation, rather than rounding each punch, unless your employer's policy specifically rounds punches.
