Stopwatch & Timer

A stopwatch and countdown timer for workouts, cooking, studying and more. Each lap shows both the split time and the running total.

⏱️ Stopwatch

00:00.00

⏳ Countdown Timer

00:00

A short beep plays once when the countdown ends. Browsers only allow sound after you have interacted with the page, so press Start yourself rather than relying on an earlier visit.

How this stopwatch measures time

Many online stopwatches work by adding one to a counter every hundredth of a second. That approach drifts: if the browser is busy or the tab is pushed to the background, some of those ticks are delayed or skipped, and the displayed time falls behind real time. This page does it differently. When you press Start it records the current clock reading, and every time the display refreshes it shows now minus start, plus whatever time was banked before the last pause. A skipped refresh therefore does no harm, because the next one recomputes the correct value from the clock.

The clock source in the code is Date.now(), the system wall clock in milliseconds. It is not the monotonic performance.now(). In practice that means the reading follows your device's clock, so if the operating system steps the time (for example a manual change or a network time correction) while a run is in progress, a measurement could in principle jump. Daylight-saving switches do not matter, because the value is a count since a fixed UTC moment. For everyday timing this is rarely noticeable, but it is a real property of the method and a reason not to use the page for anything that needs certified accuracy.

The display shows hundredths of a second, but the screen is refreshed roughly every 30 milliseconds, so the last digit is there to be read by eye rather than to claim instrument-grade precision. Your own finger reaction when pressing a button usually adds 0.1 to 0.3 seconds, which is larger than anything the display could resolve. Treat the tool as good for time management at the scale of seconds and for comparing your own results from one attempt to the next. Do not use it for official race times or as legal evidence.

Why the countdown stays accurate

The timer uses the same idea. At the moment you press Start it stores end time = now + remaining time, and every 250 milliseconds it computes the remaining seconds from that end time, rounded up. Browsers often throttle timers in background tabs, sometimes to about one call per second or less, but because the display is derived from the stored end time, the right figure appears as soon as you return to the tab. While the countdown runs, the remaining time is also shown in the browser tab title so you can see it from another tab.

There are limits. If a phone screen turns off or the browser discards the tab to free memory, the page may not get a chance to play the alarm. For anything that matters, such as medication or a meeting, use your device's built-in alarm as well.

Reading laps and splits

Pressing Lap records two numbers. The split is the time from the previous lap (or the start) to this lap. The total is the elapsed time since you started. On a track, the split is one lap's time and the total is the running clock. Once you have three or more laps, the fastest split is shown in green and the slowest in red, which makes an uneven pace easy to spot. The line above the list shows the number of laps and the average split. Copy times puts the lap number, split and total on separate lines separated by tabs, so it pastes cleanly into a note or spreadsheet. The list is newest first.

The code does not cap the number of laps. Every new lap redraws the list from the beginning, so a very long session with thousands of laps may feel slower, but ordinary use is fine. Laps are only recorded while the stopwatch is running.

Example 1: pacing five laps of a 400 m track

Suppose you run 2,000 m on a 400 m track and press Lap each time. Your splits are 92.4, 90.1, 91.8, 93.5 and 89.7 seconds. The running totals are 92.4, 182.5, 274.3, 367.8 and 457.5 seconds, which is 7 minutes 37.5 seconds. The average split is 457.5 / 5 = 91.5 seconds. A kilometre is 2.5 laps, so the average pace is 91.5 x 2.5 = 228.75 seconds, about 3:48.8 per kilometre. The fastest lap was the fifth at 89.7 seconds and the slowest the fourth at 93.5, a spread of 3.8 seconds. That pattern, fading on lap four and finishing hard, suggests starting a touch more conservatively to even things out.

400 m lap time converted to pace per kilometre

Time for one lap (400 m)Pace per km5 km projection at the same pace
1:00.02:30.012:30.0
1:10.02:55.014:35.0
1:15.03:07.515:37.5
1:20.03:20.016:40.0
1:30.03:45.018:45.0
1:40.04:10.020:50.0
1:50.04:35.022:55.0
2:00.05:00.025:00.0

The table multiplies one lap by 2.5 for a kilometre and by 12.5 for five kilometres, computed when the page is built. In reality most people slow down over longer distances, so treat the 5 km column as an optimistic ceiling rather than a forecast. For pace conversions of any distance, try the Running Pace Calculator.

Example 2: turning minutes and seconds into total seconds

The timer converts what you type into total seconds with total = minutes x 60 + seconds. Three minutes 20 seconds is 3 x 60 + 20 = 200 seconds, and 12 minutes 45 seconds is 12 x 60 + 45 = 765 seconds. If you type more than 59 into the seconds box, say 90, the timer carries it over instead of rejecting it, so 0 min 90 s becomes 1 min 30 s. The maximum is 999 minutes 59 seconds, about 16.7 hours.

DurationTotal secondsMilliseconds
0 min 30 s3030,000
1 min 30 s9090,000
3 min180180,000
5 min300300,000
10 min600600,000
15 min900900,000
25 min1,5001,500,000
1 h3,6003,600,000

Ways to use it

Common mistakes and limits

Making the numbers useful

Measurements pay off when you keep and compare them. Timing the same route or routine each week and noting the result shows your improvement over a month, and aiming to shrink the gap between your fastest and slowest lap is a simple way to practise even pacing. For work, logging how long a task really took improves your next estimate. If you guessed one hour for a report and the stopwatch said 100 minutes, a fair correction is to allow about 1.7 times your first guess on similar tasks (100 / 60 is about 1.67). A few such measurements make a schedule far more realistic.

Frequently Asked Questions

Does the timer keep running if I switch tabs?

Yes. Time is calculated from the clock, so it keeps passing while the tab is hidden. The on-screen refresh slows down in the background, and on a phone a locked screen or a discarded tab can delay or prevent the alarm.

How many laps can I record?

The code has no limit. Reset clears all of them, and the newest lap is at the top of the list.

Can the stopwatch and the timer run at the same time?

Yes, they are independent. You can run the stopwatch for a whole workout and use the timer for each rest interval.

If I stop and start again, does the time continue?

Yes. The elapsed time at the moment you stop is kept, and the next Start continues from that value. Reset sets it back to zero.

How accurate is the hundredth-of-a-second display?

It is computed from the device clock, so it does not drift over a long run, but the roughly 30 millisecond refresh and your own reaction time make about a tenth of a second the realistic precision. A wall-clock adjustment during a run could also affect the reading.