Work and break cycles with a round counter

Alternate configurable work and break countdowns, replacing every fourth short break with a longer one by default.

freeworks offlinenothing uploaded
ToolPomodoro Timer
WorkBreakLong break
25:00

Round 1

Configure lengths

Space to start or pause · R to reset

How it works

A state machine advances work to short break unless the round is divisible by the selected cycle length, when it chooses long break; a completed break advances the round or resets it after the long break. performance.now measures each phase and Web Audio signals transitions.

  • 25 minutes work, 5 minutes rest, 15 minutes long rest, and four rounds follow the familiar Pomodoro pattern but remain editable.
  • Reset returns to work round one instead of retaining a partial cycle.

Worked example

One default four-round cycle
Input
											Work minutes: 25
Break minutes: 5
Long break minutes: 15
Rounds: 4
										
Output
												Work 25 → Break 5 → Work 25 → Break 5 → Work 25 → Break 5 → Work 25 → Long break 15
											

When to use this

Writers separate drafting from rest, students group four work periods, and solo task queues make breaks visible.

Edge cases

  • Skipping work advances to its break because skip means move to the next phase.
  • Editing a length does not recreate time already elapsed inside a running phase.
  • Background throttling can delay the display or chime even though phase elapsed time uses monotonic timestamps.

References