A barline (or bar line) is the vertical line drawn through a staff to separate one bar (measure) from the next. Ordinary single barlines mark the regular divisions set by the time signature; special barlines such as the double barline, the final barline and repeat barlines also tell the reader where sections begin and end and which passages to play again.
Barlines are silent, but they shape how music is read and played. They reset accidentals, force long notes to be split with ties, carry repeat instructions, and serve as the reference points for bar numbers in rehearsal. In notation software and MusicXML, they’re also data that drives playback.
Table of Contents
Types of barlines

| Barline | Looks like | Meaning |
|---|---|---|
| Single | One thin vertical line | Separates ordinary bars |
| Double | Two thin lines close together | End of a section, or a change of key, tempo or style |
| Final | A thin line followed by a thick line | End of the piece or movement |
| Start repeat | Thick line, thin line, two dots facing right | Beginning of a passage to be repeated |
| End repeat | Two dots facing left, thin line, thick line | Go back to the start repeat (or to the beginning if there is none) |
| Double repeat | Dots on both sides of thick (or thin) lines | End one repeated section and start another |
| Dashed or dotted | A broken vertical line | Subdivides long or irregular bars (for example 7/8 as 2+2+3) without starting a new bar |
| Tick or short | A short stroke through only the top or middle of the staff | Light division, common in chant editions and some modern scores |
| Systemic | A line joining several staves at the left edge | Shows which staves are played together (grand staff, score systems) |
A common reading error is treating a double barline as the end. Only the thin-thick final barline means the piece is over; two thin lines just mark a new section. Two consecutive thick lines or a reversed thick-thin line are rare variants used in specific editions.
What barlines do in notation
They organize the meter
Single barlines divide the music into equal bars, so the first beat after each barline is the downbeat. The barline itself is not an accent mark: it shows where the metric cycle restarts, and the music may deliberately place its accents elsewhere.
They reset accidentals
A sharp, flat or natural applies to that pitch only until the next barline. After the barline, the key signature applies again. The one exception is a note tied across the barline, which keeps its accidental for the tied duration only. Editors often add courtesy accidentals (sometimes in parentheses) after a barline as a reminder.
They force ties
A single notehead never crosses a barline. A sound that starts in one bar and continues into the next is written as two notes joined by a tie, so the barline stays visible. That’s why anticipations and syncopations so often appear as ties across the bar.
They carry section and navigation information
Double barlines, repeats and final barlines show the form at a glance. Repeat barlines combine with first and second ending brackets (voltas) and with jump markings such as D.C. (da capo, from the beginning), D.S. (dal segno, from the sign) and Coda; those markings are separate symbols, but they usually sit at barlines.
How repeat barlines work
- Play until the end repeat barline.
- Return to the most recent start repeat barline. If there is none, return to the beginning of the piece.
- Play the passage again. If there are endings, skip the first-ending bars on the second time through and play the second ending instead.
- Continue past the end repeat (it applies once unless a number such as “3×” is written).
In DAW terms, a repeat is a loop that plays a set number of times, and first and second endings are the bars that differ on each pass. Lead sheets and charts use repeats heavily to keep a 3-minute song on one page; session players are expected to read them at sight.
Worked example: reading a road map
Repeats, endings and jumps make a chart compact, but the order of measures must be reconstructed. Take an 8-bar chart: bars 1–2, then a start-repeat sign before bar 3, bars 3–6 with a first ending over bar 6 and a second ending over bar 7, and an end-repeat sign at the end of bar 6. The play order is:
1 · 2 · 3 · 4 · 5 · 6 (1st ending) · 3 · 4 · 5 · 7 (2nd ending) · 8
So 8 written bars become 11 played bars. Add a D.S. al Coda instruction and a coda sign, and the map gets longer again. Session players often write the total played length at the top (“11 bars”) or rewrite the chart without repeats for the click track and DAW session, so everyone’s bar numbers agree.
| Sign | Meaning |
|---|---|
| Start repeat ‖: | Go back to here at the next end-repeat |
| End repeat :‖ | Return to the start-repeat (or to the beginning) |
| 1st / 2nd ending brackets | Play the first ending on the first pass, skip it on the second |
| D.C. (da capo) | Go back to the beginning |
| D.S. (dal segno) | Go back to the segno sign |
| al Fine | Play until the word Fine |
| al Coda | Play until the “to Coda” mark, then jump to the coda |
Barlines on charts, lead sheets and tab
- Lead sheets and rhythm charts use the same barlines as full scores, typically four bars per line so phrases line up vertically.
- Double barlines mark section changes (verse to chorus) and usually come with a rehearsal letter or section label.
- Guitar and bass tab draws barlines across the six (or four) string lines; repeat signs and endings work the same way, though some web tabs leave rhythm and bars out entirely, which is why tab without a rhythm line is hard to sight-read.
- Nashville number charts use one number per bar and draw barlines only when a bar holds more than one chord.
Placement rules that matter
- New time and key signatures go after the barline; a clef change that applies to the next bar goes just before the barline.
- Double barlines at section changes. Engraving guides such as Elaine Gould’s Behind Bars recommend double barlines for genuine section changes and key changes; at a time signature change in the middle of a continuing phrase, a single barline is usually enough.
- Vocal staves. In choral scores, barlines are often drawn through each staff separately rather than through the gaps between staves, so they don’t cut through the lyrics.
- Thickness. A barline should be visibly heavier than a stem so the eye can separate structure from rhythm; the thick line of a final or repeat barline is several times heavier.
- Bar numbers are usually placed at the start of each system, above the barline.
Barlines in notation software and DAWs
Score editors (Dorico, Sibelius, Finale, MuseScore) draw single barlines automatically from the time signature and let you change their type at any bar. DAW score editors and MIDI piano rolls show bar lines as grid lines; they rarely store special barline types, which is why repeats and endings often disappear when a MIDI file is opened in notation software.
In MusicXML, the exchange format most notation programs read and write, the barline element is written only when a barline differs from an ordinary single line. Its bar-style values include regular, dotted, dashed, heavy, light-light (double), light-heavy (final), heavy-light, heavy-heavy, tick, short and none, and it can also carry repeat directions and first and second endings, which software uses for playback. The W3C’s MusicXML 4.0 reference documents the element.
Music fonts that follow the SMuFL standard assign each barline symbol a code point (barlineSingle is U+E030, barlineDouble U+E031, barlineFinal U+E032), although the specification recommends that scoring programs draw barlines as lines rather than glyphs so they scale across staves of any height.
Barlines when exporting MIDI and MusicXML
A DAW knows where bars are, but it doesn’t store repeat signs: a MIDI file is the music as played, with every repeat written out. When you export MIDI to notation software, the result will have no repeats or endings unless you add them. MusicXML, the common exchange format between notation programs, does carry barline styles, repeats and endings, so it’s the better format when the score matters. Common cleanup jobs after a MIDI import are fixing the time signature at bar 1, setting pickup measures, and collapsing repeated sections back into repeat signs.
Barlines in history and without bars
Barlines are relatively young. They first appeared as reading aids in 14th- and 15th-century keyboard and lute music and became regular, metrical markers in the 17th century. Some music still does without them: plainchant editions use short tick barlines to mark phrases, editions of Renaissance polyphony sometimes draw lines only between staves, and Erik Satie’s Gnossiennes have none at all. The full story is in the history of bars and barlines.
Common mistakes
- Reading a double barline as the end. Only the thin-thick final barline ends the piece.
- Carrying accidentals past the barline. They reset at every barline, except through a tie.
- Writing one long note across a barline. Split it and tie it.
- Assuming a barline means an accent. It marks the metric position, not the dynamics.
- Forgetting where the repeat goes back to. The nearest start repeat, or the beginning if there isn’t one.
FAQ
What is the purpose of a barline?
To divide the staff into bars according to the time signature, giving readers a visual map of the meter and reference points for counting, accidentals and bar numbers.
What is the difference between a bar and a barline?
The bar (measure) is the span of time between two lines; the barline is the line itself.
What does a double barline mean?
The end of a section or a change such as a new key or tempo. It does not end the piece.
What is a final barline?
A thin line followed by a thick line, marking the end of a piece or movement.
Do accidentals carry over a barline?
No, except for a note tied across the barline, which keeps the accidental for the length of the tie.
Where does a repeat sign go back to?
To the nearest start repeat barline, or to the beginning of the piece if there isn’t one.
What is a dashed barline?
A broken line that subdivides a long or irregular bar into readable groups without starting a new bar.