What is an online metronome?
A metronome is the oldest practice tool in music: a device that marks time with a perfectly regular pulse so you can play against something that never speeds up, slows down or gets tired. The mechanical metronome did it with a pendulum and a tick; the electronic metronome used a quartz clock and a beep; an online metronome replaces the box with software in your browser tab. The job has not changed in two hundred years. What has changed is everything around it: a bpm metronome in a browser can show the bar and beat on screen, divide each beat into eighths, triplets or sixteenths, remember your settings, and be set by tapping along to a song - with no download, account or purchase. This page is that tool, and this guide explains how it works, the maths underneath it, where its accuracy comes from, and where its limits are.
People need it for practical reasons: a piano student told to practise at 92 BPM and no faster until a passage is clean, a drummer rehearsing a song recorded at 138, a guitarist tightening strumming, a dance teacher needing a reliable pulse for a class. In every case the need is the same - a trustworthy, adjustable, audible pulse, available immediately. That is what the tool above provides, and the rest of this guide is the manual, the maths lesson and the honest small print in one place.
How this online metronome works
Press Start and four things happen in order. First, the browser creates (or resumes) an audio context - the Web Audio API object through which all sound on the page flows. Browsers only allow this inside a user gesture, which is why sound starts from your click on the button, not automatically on page load. Second, the scheduler starts looking ahead, placing clicks at exact audio times as the scheduling section explains. Third, each click is synthesised in one of three voices - accented, normal or subdivision. Fourth, the visuals follow the audio schedule, so what you see is the beat you are about to hear.
The controls map directly onto that engine. The BPM control - slider, number box and presets together - sets the length of one beat. Beats per bar sets how beats group into bars and where the accent falls; it is the top number of your time signature. Subdivision divides every beat into 1, 2, 3 or 4 equal clicks. Volume sets the click level, and the tap tempo button sets the BPM from your own tapping. Because the scheduler reads the current settings each time it places the next click, every control works live while the metronome plays. Your four settings are saved in browser local storage on this device, so the page reopens the way you left it.
The maths: BPM, seconds per beat and subdivisions
All metronome maths rests on one definition: BPM is beats per minute. One minute is 60 seconds, so one beat in seconds is 60 divided by BPM. At 60 BPM a beat lasts exactly 1.0 second; at 120 BPM exactly 0.5 seconds; at 240 BPM, the top of this tool range, 0.25 seconds; at 30 BPM, the bottom, a slow 2.0 seconds. The scheduler was tested as a pure calculation before publication: its interval function returns 0.5 seconds at 120 BPM and 1.0 seconds at 60 BPM, exactly as the formula requires, and its note-advance function adds that interval to the current audio time to find the next click.
Subdivisions divide the beat, they do not change it. If a beat lasts S seconds and you choose N notes per beat, clicks fall every S divided by N seconds. At 120 BPM the beat is 0.5 seconds, so eighth notes (N = 2) fall every 0.25 seconds, triplets (N = 3) every one third of 0.5 seconds, and sixteenth notes (N = 4) every 0.125 seconds. The BPM - the rate of the main beats you count - stays exactly where you set it; only the density of clicks between beats increases. The same maths drives delay pedals and DAW grids: a quarter-note delay at 120 BPM is 500 milliseconds, an eighth-note delay 250 milliseconds. For conversions measured from a song rather than set for practice, the companion Tap Tempo BPM Calculator on this site converts between BPM and milliseconds in both directions.
| Tempo (BPM) | Seconds per beat (60 / BPM) | Eighth note | Sixteenth note |
|---|---|---|---|
| 60 | 1.000 s | 0.500 s | 0.250 s |
| 80 | 0.750 s | 0.375 s | 0.188 s |
| 100 | 0.600 s | 0.300 s | 0.150 s |
| 120 | 0.500 s | 0.250 s | 0.125 s |
| 160 | 0.375 s | 0.188 s | 0.094 s |
| 200 | 0.300 s | 0.150 s | 0.075 s |
Lookahead scheduling: why the click does not drift
The naive way to build a web metronome is to play a click inside a repeating browser timer. It fails predictably: browser timers share a queue with layout, painting and other scripts, so each late firing pushes the next click late too, and over a minute the beat audibly wanders. The standard solution, set out in Chris Wilson article A Tale of Two Clocks in the sources, separates the two clocks. The timer is demoted to an alarm clock that wakes frequently - here every 25 milliseconds - and does no timing of its own. The audio clock, maintained by the audio hardware path, is the only clock that decides when clicks sound.
Concretely, the scheduler keeps a variable for the audio time of the next click. Each time the alarm wakes, it checks whether that click falls within a lookahead window - here 0.1 seconds ahead of the audio clock. While it does, it creates the click at that exact audio time, advances the next-click time by the current beat or subdivision interval, and checks again. Because clicks are placed slightly in the future on a clock that never pauses for layout work, a busy main thread cannot make a click late; the 0.1 second cushion absorbs the delay. The visual flash follows the same schedule: beats are queued with their audio times, and an animation loop lights the indicator when the audio clock reaches each one.
Tempo markings: Largo to Presto
Before BPM numbers existed, composers marked tempo with Italian words describing character, and teachers still use them alongside numbers today. The preset buttons jump to a representative tempo for each marking, and the table below gives the conventional ranges used across this site. Treat the ranges as neighbourhoods, not borders: sources differ by a few beats at every boundary, the ranges overlap, and a marking describes how the music should feel at least as much as how fast it should go.
| Marking | Character | BPM range | Preset on this tool |
|---|---|---|---|
| Grave | slow and solemn | 25-45 | - |
| Largo | broadly, very slow | 40-50 | 45 BPM |
| Lento | slowly | 45-60 | - |
| Larghetto | rather broadly, less slow than Largo | 60-66 | 63 BPM |
| Adagio | at ease, slow and stately | 66-76 | 72 BPM |
| Andante | at a walking pace | 76-108 | 92 BPM |
| Moderato | moderately | 108-120 | 114 BPM |
| Allegro | bright, quick and lively | 120-156 | 138 BPM |
| Vivace | lively and fast | 156-176 | 166 BPM |
| Presto | very fast | 168-200 | 184 BPM |
| Prestissimo | as fast as possible | 200+ | - |
The tool also names the marking nearest your current BPM in the results panel, so you can move between the two languages fluently: set 92 and you are in Andante territory, at a walking pace; set 138 and you are squarely in Allegro. For practice the number is what matters - a teacher instruction or the recording you are matching will give a BPM figure - but the words help you read older scores and understand how a movement should feel at its marked tempo.
Time signatures and the accented first beat
A metronome with time signatures does one extra job beyond keeping the pulse: it tells you where the bar begins. Music is grouped into bars, and the first beat of each bar carries a natural emphasis - it is the beat dancers step on, the beat chord changes usually land on, and the beat you count as one. This tool groups beats using the beats per bar control, from 1 to 12, and plays the accent pattern exactly as musicians expect: in 4/4, beat 1 is accented and beats 2, 3 and 4 are ordinary - accent on the first step of the bar only. In the code that pattern is computed, and was tested, as a pure function: a step is accented only when it starts a beat and that beat is the first of the bar, so in 4/4 with eighth-note subdivisions the accents across sixteen steps fall on steps 0 and 8 - the two bar starts - and nowhere else.
Choosing the right number is simple: use the top number of the time signature. Set 4 for 4/4, 3 for 3/4 waltz time, 2 for 2/4, 6 for 6/8, 9 for 9/8 and 12 for 12/8. Compound signatures deserve one honest note: in 6/8 most musicians feel two big beats, each made of three eighths, rather than six equal ones. You can set 6 beats per bar, which is literally correct, or set 2 beats per bar with triplet subdivisions, which groups the same six clicks as two threes and often matches how the music is conducted. Neither is wrong; they are two honest groupings of the same pulse. The beat dots show the grouping you have chosen, and the bar counter keeps count so you know how many bars you have played.
Subdivisions: eighths, triplets and Sixteenths
Subdivisions answer the most common complaint about practising slowly: at a slow tempo the gap between beats is long, and placing notes evenly inside a silence is hard. Dividing each beat fills the gap with quieter reference clicks. Eighth notes split the beat in two, for strumming patterns and even quavers. Sixteenth notes split it in four, for fast fingerwork, drum rudiments and checking that semiquaver runs are even rather than galloping. Triplets split it in three - the division behind shuffle, swing and 6/8 feels, and every passage where three notes must share one beat fairly. Subdivision clicks are deliberately quieter and lower than beat clicks and never take the accent: the hierarchy you hear - strong bar start, plain beat, gentle subdivision - mirrors the hierarchy in the music.
A practical way to use them: learn a difficult bar at a slow tempo with sixteenth subdivisions on, so every semiquaver has a click to answer to. As the bar cleans up, remove subdivisions in stages - sixteenths to eighths, eighths to plain beats - keeping the BPM fixed, so your internal timing does more of the work at each stage. Then raise the tempo in small steps of 4 to 6 BPM. The maths guarantees the clicks are evenly spaced - each subdivision interval is exactly the beat interval divided by 2, 3 or 4 - so any unevenness you hear is information about your playing, which is precisely what a practice tool is for.
Tap tempo: setting the beat by tapping
Sometimes the tempo you need starts in your ears, not in a number: a song on the radio, a backing track, the speed a melody is running in your head. Tap the Tap Tempo button in time with the beat at least four times - a simple tap tempo metronome in miniature - and the tool averages the intervals between your taps and sets the BPM - taps spaced 500 milliseconds apart set 120 BPM, taps spaced 750 milliseconds apart set 80 BPM. Averaging matters: no human taps perfectly evenly, and the mean of several intervals beats any single gap. Tap the main pulse - the beat you would nod to - rather than every note, or you will set a subdivision tempo by accident.
Know the boundary of the feature, stated plainly: the tap button here is a convenience for setting this metronome, with simple averaging - not a full measuring instrument. For a dedicated tap tempo measurement, with outlier trimming, tap counts, interval statistics and a BPM to milliseconds converter, use the FreeSoftis Tap Tempo BPM Calculator, which explains its rules in full. The two tools are mirror images on purpose: measure a tempo there, then practise against it here.
Practising with a metronome: routines that work
A metronome does not make you better by being switched on; it makes you better when the routine gives it a job. Four routines cover most needs. The ladder: start a passage 20 BPM below target, play it cleanly twice, raise 4 BPM, and repeat until you reach the target; stop for the day at the first tempo where it falls apart twice. The subdivision ladder: fix the tempo and strip subdivisions away stage by stage, sixteenths to eighths to plain beats. Gap practice: play whole sections without stopping, using the accent and bar counter as checkpoints rather than a crutch. Off-beat practice for advanced players: treat the click as the off-beat by starting your bar half a beat after the accent - uncomfortable, and it exposes every place your time was leaning on the click.
Two habits make any routine work better. First, record the numbers: the Copy and Download buttons save your current settings - BPM, time signature, subdivision - as a text note, so next session starts exactly where the last one ended. Second, keep the click at a volume you can play over, not under, and use the flashing bar counter as a visual supplement when your instrument is loud. And when the metronome disagrees with you, believe it for the length of the session; arguing with the one perfectly steady musician in the room is the habit it exists to break.
Accuracy, devices and honest limits
Three kinds of accuracy are often blurred together. Scheduling accuracy - whether clicks are placed at the intended times - is handled by the lookahead scheduler on the audio clock, and is as good as the Web Audio API allows. Output accuracy - when the sound reaches your ears - depends on your device audio stack and connection: speakers and wired headphones add a few milliseconds, while Bluetooth audio commonly adds a tenth of a second or more. That delay shifts every click equally, so the tempo stays correct, but the flash will appear to lead the sound; use a wired or built-in output if the mismatch bothers you. Perceptual accuracy is yours: humans anticipate and lag by small amounts, which is normal, trainable, and the point of the tool.
Two environment notes belong here rather than in fine print. First, this page requests a screen wake lock while it plays, on browsers that support the Wake Lock API, so your screen should stay awake during practice; where wake lock is unavailable the screen may sleep, and a sleeping device can pause web audio - keep the tab visible for long sessions. Second, a browser tab is a guest in an operating system: a phone call or a heavy app can interrupt audio in ways no web page can prevent. For everyday practice this free metronome online is dependable; for a recording session click track, a dedicated app or hardware metronome remains the right choice, and this page will not pretend otherwise.
What this tool cannot do
- No practice tracking. There are no accounts, streaks, session logs or statistics about your playing. The tool plays clicks and remembers your four settings on this device - nothing more is recorded.
- No listening or recording. The metronome never uses your microphone and cannot hear whether you played in time. The tap tempo button times your button taps only.
- No sound library. Clicks are synthesised Web Audio tones - accented, normal and subdivision voices - not sampled woodblocks, cowbells or voice counts, and there is no custom sound upload.
- No advanced rhythm programming. There are no polyrhythms, tempo ramps, automated tempo changes, silent-bar trainers or programmable setlists. The tempo changes only when you change it.
- No guarantee against device behaviour. Timing depends on your browser and audio stack; Bluetooth delay, screen sleep without wake lock support, and system interruptions are outside the page control, as the accuracy section explains.
- Settings live in this browser only. Local storage saving does not sync between devices or browsers, and clearing site data removes it.
Used within those limits, the tool does the whole of the job it claims: a steady, honest click, at any tempo from Largo to Prestissimo, in any simple or compound grouping you set, starting the moment you press start.
Sources & References
- MDN Web Docs - Web Audio API: the API used to generate and schedule every click on this page
- Chris Wilson - A Tale of Two Clocks: the lookahead scheduling pattern this metronome implements
- MDN Web Docs - AudioContext: the audio clock, its currentTime and the resume-on-gesture rule
- MDN Web Docs - Screen Wake Lock API: how this page asks the browser to keep the screen awake while playing
- Wikipedia - Tempo: the Italian tempo markings, their meanings and their conventional BPM ranges
- Wikipedia - Metronome: the history of marking time in beats per minute
- musictheory.net - lessons on tempo and musical time from the widely used theory course
All seven sources were checked before publication and returned HTTP 200. The scheduling figures were verified with the pure timing functions tested in Node: 60 divided by 120 BPM gives exactly 0.5 seconds per beat, 60 divided by 60 BPM gives exactly 1.0 seconds, subdivision intervals divide the beat exactly, and the 4/4 accent pattern accents the first step of each bar only. No source required substitution.