In brief
Road markings are signs painted or fixed on the road surface: they regulate traffic and warn and guide road users, and may be supplemented by other means of signalling (article 58.º of the Regulamento de Sinalização do Trânsito [Traffic Signalling Regulations], the RST). They are generally white; exceptions, such as yellow stopping and parking markings, are set out in the RST itself (articles 59.º and 62.º).
This page covers longitudinal markings (solid, broken and mixed lines), transverse markings (stop lines and pedestrian crossings), arrows, yellow markings and diagonal hatching, with the RST M codes and the very serious offence of crossing a solid line separating traffic in opposite directions.

Longitudinal lines: solid, broken and mixed
Longitudinal markings separate traffic in opposite directions or traffic lanes (article 60.º of the RST). They are the road-marking topic most often tested, especially the difference between solid, broken and mixed lines.
| Code | Marking | What it means for the driver |
|---|---|---|
| M1 | Solid line | You must not drive over or cross it, and must keep to its right when it separates traffic in opposite directions |
| M2 | Broken line | You must remain in the lane it marks; you may only drive over or cross it when carrying out manoeuvres |
| M3 | Mixed line (solid + broken) | The line closest to the driver applies: solid or broken |
| M4 | Warning broken line | Short dashes with short gaps: warns of an approaching solid line or narrow section |
| M5 | Reversible traffic lines | Two adjacent broken lines mark lanes whose direction may be changed by signs |
| M6 / M6a | Deceleration or acceleration lane line | Wide dashes marking a lane where a different speed is used |
| M7 / M7a | BUS lane lines | Wide solid or broken lines marking public transport lanes, with the word BUS |
Crossing or driving in breach of a continuous longitudinal line separating traffic in opposite directions, or of a mixed line with the same meaning, is a very serious offence (Código da Estrada, art. 146.º, o), carrying a driving ban of 2 months to 2 years and the loss of 4 points.
Near particularly dangerous places, such as humps, junctions and places with reduced visibility, two adjacent solid lines may be used with the same meaning as M1 (article 60.º, n.º 2, of the RST).
Transverse markings: where to stop and where pedestrians cross
- M8 and M8a: stop line, solid and across the road: marks the place where you must stop as required by another signalling device (a STOP sign or traffic light); it may be reinforced by the word STOP painted on the road.
- M9 and M9a: give-way line, broken: marks the place to stop if necessary where signs require you to give way; it may be reinforced by a triangle painted on the road.
- M10 and M10a: cycle crossing, made up of squares or parallelograms.
- M11 and M11a: pedestrian crossing, made up of longitudinal bars parallel to the road axis (zebra crossing) or two solid transverse lines; where there are no traffic lights, M11, the classic zebra crossing, is used.
The link with upright and light signals is direct: at a B2 sign or red light, you stop before the M8 stop line; at a B1 sign, the M9 line shows you where to wait if you have to give way.
Lane arrows and diversion arrows
Lane arrows (M15 to M15f) guide traffic directions as you approach crossroads and T-junctions. Note the rule tested in the theory test: when they are painted in lanes marked by solid lines, following the direction shown becomes compulsory (article 63.º of the RST). They may be preceded by advance warning arrows, which can also indicate a dead-end lane.
Diversion arrows (M16, M16a and M16b) are repeated arrows set at an angle to the road axis: they indicate that it is advisable, or even compulsory, to move into the lane they point to, for example when your lane is about to end. M16b is used with the M4 warning line.
Yellow markings: stopping, parking and box junctions
Markings regulating stopping and parking are yellow (article 62.º of the RST), and each type has a different effect:
- M12 and M12a: solid yellow line beside the edge of the carriageway or on the kerb: stopping and parking are prohibited on that side along the full length of the line.
- M13 and M13a: broken yellow line: parking is prohibited on that side, but stopping is allowed.
- M14: yellow zigzag line: parking is prohibited on that side along the full length of the marking.
- M14a: area marked out by solid yellow lines: stopping and parking are prohibited, except for loading and unloading.
- M17b: yellow box marking at a junction that is liable to become congested: you must not enter, even if you have priority or a green light, if you are likely to be left stationary inside it.
Parking spaces themselves are marked by solid or broken white lines forming rectangles or parallelograms (article 62.º, n.º 3, of the RST). The prohibition indicated by M12 and M13 markings may be restricted to certain times or types of vehicle by upright signs.
Diagonal hatching, edge lines and other markings
- M17 and M17a: diagonal hatching bounded by a solid line: you must not enter the area; it is used, for example, to separate traffic directions or protect diverging lanes.
- Diagonal hatching bounded by a broken line: parking and entry are prohibited, except for manoeuvres that clearly present no danger (article 64.º, n.º 2, of the RST).
- M18: alternating yellow and black stripes: indicates obstacles or structures that may present a danger.
- M19: edge lines: make the edge of the carriageway more visible; they do not count as longitudinal markings.
- M20: coloured bands: pairs of transverse lines with progressively shorter gaps, warning you to reduce speed.
- M21: safety markings: yellow V shapes, with the point facing the direction of travel, recommending a safe distance from the vehicle in front.
For temporary roadworks, road markings retain their meaning but are yellow (article 91.º of the RST). In the signalling hierarchy, road markings give way to upright signs, traffic lights and officers’ directions (Código da Estrada, art. 7.º).
Frequently asked questions
What does a mixed solid and broken line mean?
It is marking M3: the line on your side applies to you. If the nearest line is broken, you may cross the set to carry out manoeuvres such as overtaking; if it is solid, you must not drive over or cross it.
What type of offence is driving over or crossing a solid line?
Where it is a solid line separating traffic in opposite directions, or a mixed line with the same meaning, it is a very serious offence (Código da Estrada, art. 146.º, o): a fine, a driving ban of 2 months to 2 years and 4 points deducted from your licence.
What do diagonal hatch markings painted on the road mean?
When bounded by a solid line (M17 and M17a), they prohibit entry into the marked area. When bounded by a broken line, they prohibit parking and entry, except for manoeuvres that clearly present no danger.
What are the yellow V-shaped markings on the road for?
They are M21 safety markings, recommending the distance to keep from the vehicle in front. The Código da Estrada requires enough distance to stop if the vehicle ahead stops suddenly (art. 18.º).
Sources
- Regulamento de Sinalização do Trânsito (Traffic Signalling Regulations) — Regulatory Decree No. 22-A/98 of 1 October — Articles 58.º to 64.º and 91.º: longitudinal, transverse and parking markings, arrows and hatching.
- Código da Estrada, arts. 7.º, 18.º and 146.º (consolidated version, PGDL) — Signage hierarchy, safe distance and the very serious offence of crossing a solid line.
Verified on 26/08/2026 against the legislation in force.