Pavement Markings: Yellow vs White Lines

Two colors of paint quietly run the whole road: yellow keeps opposing traffic apart, white keeps traffic going your own direction organized. Learn the code and any line makes sense.

Learner's permitAll U.S. states
⏱️ About 16 min

Long before you reach a sign or a signal, the painted lines on the road are already telling you what's allowed: whether you can pass, whether you can change lanes, and which side of the road belongs to oncoming traffic. Two colors carry almost the entire system — once you know the code, you can read any road.

💡
The big idea: YELLOW lines separate traffic moving in OPPOSITE directions; WHITE lines separate traffic moving in the SAME direction. On both colors, SOLID means don't cross, and BROKEN (dashed) means you may cross when it's safe.
🎯 By the end, you'll be able to
  • State the rule: yellow = opposite directions, white = same direction
  • Explain what solid vs. broken lines allow, for both yellow and white markings
  • Read a mixed yellow line (solid on your side, broken on the other) as a one-way passing zone
  • Identify what a double yellow and a double white line each restrict
📎 Helpful to know first

The two-color system

Nearly every painted line on a U.S. road follows one simple split:

  • Yellow — separates traffic traveling in opposite directions. You'll find it down the center of a two-way road.
  • White — separates lanes of traffic traveling in the same direction, and marks the right edge of the roadway.

Within each color, whether the line is solid or broken (dashed) tells you whether crossing it is allowed:

🔑 Solid vs. broken, in one line
Solid = stay on your side, don't cross to pass or change lanes. Broken (dashed) = you may cross when it's safe to do so — to pass on yellow, or to change lanes on white.

Yellow lines: sharing the road with oncoming traffic

Yellow center-line markings tell you about passing — specifically, moving into the lane used by oncoming traffic to get around a slower vehicle:

A single solid yellow line down the center of a two-way road.

A single solid yellow line: passing is not allowed from your side.

Two solid yellow lines down the center of a two-way road.

Double solid yellow: passing is prohibited from either direction.

A single dashed yellow line down the center of a two-way road.

A broken (dashed) yellow line: passing is permitted, when it's clear and safe, from either side.

A yellow center line that is solid on one side and dashed on the other.

One solid, one broken: only the driver on the broken (dashed) side may pass. The solid side may not.
✨ Read the line closest to YOU
When a yellow center line is solid on one side and broken on the other, the rule applies per direction: whichever side you're driving on is the side that decides whether you personally may pass. If your side is solid, you can't pass, even if the oncoming driver's side is broken and they can.

White lines: organizing traffic going your way

White lines separate lanes traveling the same direction, and mark the road's right edge:

A single dashed white line separating two lanes traveling the same direction.

Broken white line between lanes: changing lanes is permitted when it's safe.

A single solid white line separating two lanes traveling the same direction.

Solid white line: stay in your lane — crossing is discouraged or restricted here, such as approaching an exit or within an intersection.

Two solid white lines separating two lanes traveling the same direction.

Double solid white: crossing is prohibited, commonly used along express or HOV lane boundaries.
🔑 Edge lines follow the same color logic
The solid white line along the right edge of the roadway marks the shoulder — don't drive on the shoulder side of it except to pull over. On some divided highways, a solid yellow line along the left edge marks the median side, reminding you that opposing traffic (or a barrier) is beyond it.

Check your understanding

1. You want to pass a slower vehicle. The center line is a single solid yellow line on your side. You should:
A solid yellow line on your side of the center line means passing is not allowed from that side, regardless of how clear the road looks.
2. What does a double solid yellow center line mean?
Double solid yellow lines prohibit passing from either direction.
3. A broken white line separates two lanes moving the same direction. This means:
A broken (dashed) white line between lanes means you may change lanes when it's safe — broken always means 'may cross,' whatever the color.
4. Which color line separates traffic traveling in OPPOSITE directions?
Yellow markings separate opposing traffic; white markings separate lanes traveling the same direction.
✅ Key takeaways
  • Yellow lines separate opposite-direction traffic; white lines separate same-direction traffic.
  • Solid = don't cross (no passing on yellow, no lane change on white); broken (dashed) = you may cross when safe.
  • A yellow line that's solid on your side and broken on the other means only the broken side may pass.
  • Double solid yellow prohibits passing both ways; double solid white prohibits crossing, often marking express/HOV boundaries.
➡️ Straight lane lines aren't the only markings on the pavement — next, the special-purpose markings: crosswalks, stop lines, HOV diamonds, two-way left-turn lanes, bike lanes, and railroad markings.

Frequently asked questions

What is the difference between yellow and white road lines?
Yellow lines separate traffic traveling in opposite directions, typically down the center of a two-way road. White lines separate lanes of traffic traveling the same direction and mark the road's right edge.
Can you pass on a broken yellow line?
Yes, a broken (dashed) yellow line on your side means passing is permitted when the road ahead is clear and it's safe to do so.
What does a double solid white line mean?
Crossing is prohibited. It's commonly used to mark the boundary of an express lane or HOV lane where lane changes aren't allowed.
Ready to check how you'd do?

You've learned the material free. Put it to the test with our practice exam — hundreds of exam-style questions with instant explanations, in a realistic format.

Try the US Driving Practice Exam →

Independent educational content — not affiliated with, endorsed by, or connected to any state DMV, the AAMVA, or any government agency. This is study material, not legal advice; always confirm current rules with your state's official driver handbook.