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.
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 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:
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:
White lines: organizing traffic going your way
White lines separate lanes traveling the same direction, and mark the road's right edge:
Check your understanding
- 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.
Frequently asked questions
What is the difference between yellow and white road lines?
Can you pass on a broken yellow line?
What does a double solid white line mean?
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.