Headlights Randomly Turning Off While Driving: 8 Causes and How to Fix Each
Quick Answer: Headlights that randomly turn off while driving are almost always caused by one of four things: a failing headlight relay, a loose or corroded wiring connector, a weak battery that can’t maintain voltage under load, or a dying alternator. The relay is the single most common cause and the cheapest fix — it costs £5–£15 and takes 5 minutes to swap. Start there.
This happened to my cousin on a rural A-road at 10pm last winter — headlights cut out completely, no warning, pitch black road. He kept his head, turned on the hazards, and pulled over slowly. Next morning I checked the car: the headlight relay had a hairline crack in its casing from heat cycling over the years. New relay from a parts shop: £8. Problem never came back.
Intermittent electrical faults are some of the most frustrating car problems to diagnose because they come and go unpredictably. But headlight failures follow specific patterns that, once you know them, point clearly to the cause. This guide covers all eight real causes, how to identify yours, and exactly what to fix.
Why This Is a Safety Emergency — Not Just an Inconvenience
Before getting into causes, this needs to be said clearly: headlights that cut out while driving at night are a genuine road safety emergency. Without headlights at speed:
- You cannot see hazards, road markings, or bends ahead
- Other drivers cannot see your vehicle
- Emergency braking on an unseen obstacle becomes likely
If your headlights go out while driving:
- Don’t brake suddenly or swerve
- Turn on hazard flashers immediately
- Reduce speed gradually
- Pull off the road at the first safe opportunity
- Do not continue driving until the fault is fixed
Some people drive on using parking lights or high beams as a workaround. This is dangerous and illegal in most jurisdictions — parking lights aren’t designed for driving visibility and high beams dazzle oncoming traffic. Get the fault properly fixed.
Understanding How Your Headlight Circuit Works
A basic understanding of the circuit helps enormously with diagnosis:
Battery → Fuse → Relay → Headlight Switch → Bulbs → Ground
When you turn on the headlights:
- The headlight switch sends a small control signal to the relay
- The relay uses that signal to close a high-current circuit
- Full battery voltage flows through the fuse, through the relay, to the bulbs
- Current returns through the vehicle body (ground)
A failure at any point in this chain causes the headlights to go out. The challenge is identifying which point has failed — especially when the failure is intermittent.
8 Causes of Headlights Randomly Turning Off
1. Failing Headlight Relay — Most Common Cause
The headlight relay is a small electrical switch that handles the high current needed to power headlight bulbs. It’s typically located in the fuse/relay box under the bonnet or under the dashboard.
Why relays fail intermittently: Inside every relay is a small electromagnetic coil and a set of contacts. As the relay ages, these contacts pit and corrode from repeated switching. Heat cycling causes the casing to crack. Eventually, the contacts stop making reliable connection — working fine sometimes, cutting out at others, often triggered by vibration or heat.
The vibration test: If your headlights come back on when you hit a bump or tap the dashboard — and then cut out again on the next bump — a failing relay is the almost certain cause.
How to test the relay:
- With headlights on, locate the headlight relay in the fuse box (consult your owner’s manual)
- Listen for a faint click when you turn headlights on — a working relay clicks, a dead one is silent
- Swap the headlight relay with an identical relay from another circuit (horn relay, fog light relay) — if headlights work normally, your relay was faulty
- You can also use a multimeter to test for 12V output on the relay’s output terminal when headlights are switched on
Cost: Replacement relay £5–£15. Takes 5 minutes to swap.
2. Loose, Corroded, or Damaged Wiring Connector
Modern headlight assemblies connect to the vehicle’s wiring harness through a multi-pin plastic connector. These connectors can loosen from vibration, corrode from moisture ingress, or overheat from a poor connection causing increased resistance.
Why this causes intermittent failure: A connector that’s 95% connected works fine at rest but loses contact under vibration or when the plastic housing expands from heat. The headlights work for 20 minutes, then cut out as the connector warms and shifts slightly.
Identifying a connector problem:
- Headlights restore when you wiggle the wiring near the headlight assembly
- One headlight cuts out while the other stays on (each bulb has its own connector)
- Visible green corrosion or melted plastic on the connector
- Connector doesn’t “click” firmly when pressed together
Fix: Disconnect the connector, spray with electrical contact cleaner, allow to dry, and reconnect firmly until it clicks. If corrosion is heavy, use a small wire brush on the pins. If the connector is melted or heat-damaged, the connector and a section of wiring needs replacing.
Cost: Electrical contact cleaner £5–£10. Connector replacement £20–£60 depending on vehicle.
WD-40 Electrical Contact Cleaner — safe for all connectors and relays]
3. Blown or Weak Fuse
The headlight circuit is protected by one or more fuses. A fuse that has fully blown cuts power immediately and permanently — the headlights simply don’t work at all. But a fuse that’s weakened from a previous overcurrent event can sometimes allow intermittent operation before eventually failing completely.
How to check:
- Locate your fuse box (usually under the bonnet and/or under the dashboard)
- Find the headlight fuse — your owner’s manual shows which fuse number
- Remove it and inspect: a blown fuse has a visible break in the metal strip inside
- Even if the fuse looks intact, replace it with the correct amperage rating — a fuse can be electrically compromised without a visible break
Important: If a new fuse blows again quickly, there’s a short circuit in the headlight wiring causing excess current. Don’t keep replacing fuses — find and fix the short.
Cost: Fuse pack £3–£8. Always keep a spare fuse kit in the car.
4. Failing Alternator
The alternator generates electrical power while the engine runs, maintaining battery voltage at around 13.8–14.4V. A failing alternator that can’t maintain adequate voltage causes headlights to dim progressively and eventually cut out as battery voltage drops.
Pattern specific to alternator failure: The headlights work normally when you first start driving, then gradually dim over 20–40 minutes before cutting out. After stopping and restarting (giving the battery a brief recovery period), they may work again for a while before dimming again.
Other alternator failure symptoms that appear alongside headlight problems:
- Battery warning light illuminates
- Radio resets or loses memory
- Electric windows operate slower than normal
- Interior lights dim when headlights are on
- Dashboard warning lights flicker
Quick test: With the engine running, measure battery voltage at the battery terminals with a multimeter. It should read 13.8–14.4V. Below 13V with the engine running means the alternator isn’t charging adequately. At 12.6V or below, the battery is running on its own reserve — the alternator has effectively failed.
For more on alternator lifespan and failure signs, see our guide on how long do alternators last.
Cost:
- Alternator rebuild/replacement: £150–£400 depending on vehicle
- DIY replacement: £80–£250 in parts
5. Weak or Failing Battery
A battery that can’t maintain adequate voltage under load causes voltage-sensitive components — including headlights — to cut out when demand spikes. This typically happens when multiple electrical systems run simultaneously: headlights, heater fan, heated rear window, and wipers all running at once can overwhelm a weakened battery.
Pattern specific to battery failure: Headlights cut out when you turn on another high-draw accessory (heater blower, rear demister). They may come back if you turn that accessory off. The problem is typically worse in cold weather because battery capacity drops significantly below 0°C.
Battery age matters: Most car batteries last 4–6 years. After that, internal resistance increases and capacity drops — the battery may show 12.6V at rest but collapse under load. This is why a battery can appear “fine” on a simple voltage test but still be the cause of electrical problems.
Proper battery test: A load test (not just a voltage reading) applies a controlled current drain while measuring voltage — this reveals how much capacity the battery actually has under realistic conditions. Most car parts shops offer this free.
For more on battery-related electrical problems, read our article on can a car battery die while driving.
Cost: Replacement battery £60–£150 depending on vehicle specification.
6. Faulty Headlight Switch
The headlight switch (stalk or dashboard switch) controls the headlight circuit. Over time, the contacts inside the switch wear, carbon deposits build up, and the switch becomes unreliable — cutting out the headlights mid-drive when vibration shifts the worn contacts.
How to identify a switch problem:
- Headlights come back on when you wiggle or move the headlight stalk/switch
- The switch feels loose, sticky, or has less resistance than it used to
- The switch position (on/off/auto) makes crackling or static sounds
- Problem gets worse in hot weather as plastic components expand
Test: With headlights on, very carefully and slightly move the headlight switch in different directions. If the lights flicker or cut out with switch movement, the switch is faulty.
Cost: Headlight switch/stalk replacement £30–£120 depending on vehicle. On vehicles where the switch is combined with the indicator stalk, the whole column switch assembly may need replacing.
7. Poor Ground Connection
Every electrical circuit needs both a positive supply and a return path (ground). Headlights ground through the vehicle’s metal bodywork — a specific ground point where a wire bolts to the chassis. If this ground corrodes, rusts, or loosens, the headlight circuit loses its return path and cuts out.
Ground problems are sneaky: A poor ground causes unpredictable, intermittent symptoms that change with temperature and humidity (moisture in a corroded joint changes its resistance). The headlights may work perfectly for weeks, then cut out repeatedly on a rainy night as moisture reduces the already-marginal ground connection.
How to find ground problems:
- Locate the headlight ground point — usually a bolt connecting a black wire to the chassis near the headlight assembly
- Look for white or green powder (corrosion), rust around the bolt, or a loose connection
- Clean the ground point with sandpaper down to bare metal, apply a thin coat of dielectric grease, and reattach firmly
Additional sign: If both headlights cut out simultaneously but the fuse and relay are fine, a shared ground point failure is a strong suspect.
Cost: Dielectric grease £5–£10. Ground wire replacement if needed £20–£60.
8. Failing or Blown Headlight Bulb
A bulb that’s failing internally can cause intermittent operation — working when cold, cutting out when hot, or flickering before eventually failing completely. This applies most commonly to halogen bulbs, though HID (xenon) bulbs can also fail intermittently.
Bulb failure vs. circuit failure: A single bulb failure only affects one headlight — if both headlights cut out simultaneously, the bulb is almost certainly not the cause (it would be extraordinarily coincidental for both to fail at exactly the same moment). One headlight cutting out = investigate that bulb. Both cutting out = look at relay, fuse, alternator, or battery.
Modern LED headlights: LED headlight assemblies rarely fail from bulb deterioration — they’re much longer-lived. But the LED driver module (the electronic control unit for the LEDs) can fail, causing intermittent operation. This is more expensive to diagnose and repair than a simple bulb.
Cost: Halogen replacement bulb £8–£25 per bulb. HID replacement £30–£80. LED driver module £100–£400+.
Diagnosis Flowchart — Find Your Cause in 10 Minutes
Question 1: Do both headlights cut out, or just one?
- Just one headlight → Start with the bulb and that headlight’s wiring connector
- Both headlights → Continue to Question 2
Question 2: Do they come back when you hit a bump or wiggle wiring?
- Yes → Relay or loose connector (cause #1 or #2)
- No → Continue to Question 3
Question 3: Do other electrical things misbehave at the same time (radio, windows, interior lights)?
- Yes → Battery or alternator (cause #4 or #5)
- No → Continue to Question 4
Question 4: Do they come back when you wiggle or move the headlight switch/stalk?
- Yes → Headlight switch (cause #6)
- No → Check fuse, then ground connection (cause #3 or #7)
Quick wins to try first (in order):
- Check and replace the headlight fuse — £3, 3 minutes
- Swap the headlight relay — £8, 5 minutes
- Test battery voltage at rest and under load — free at most parts shops
- Check battery age — if over 5 years, replace preemptively
What to Do If Headlights Cut Out While Driving Right Now
Immediate steps:
- Stay calm — don’t brake hard or swerve
- Turn on hazard flashers immediately — this keeps you visible
- Try toggling headlights off and on — sometimes briefly resets a failing relay
- Try switching to high beams — these may be on a separate relay circuit
- Reduce speed gradually and find a safe place to pull off the road
- Once stopped safely, turn on interior lights and wait for assistance
Do not:
- Continue driving at speed without headlights
- Use parking lights as a substitute for headlights on a dark road
- Drive to “just get home” — the fault will recur and next time may be at a worse moment
Also read our related article on what to do if the hazard lights won’t turn off — electrical faults that affect headlights sometimes affect other lighting systems simultaneously.
Repair Cost Summary
| Repair | DIY Cost | Shop Cost |
|---|---|---|
| Headlight relay replacement | £5–£15 | £40–£80 |
| Fuse replacement | £1–£5 | £20–£40 |
| Wiring connector repair | £10–£30 | £60–£150 |
| Headlight switch/stalk | £30–£120 | £100–£250 |
| Ground point cleaning | £5 (sandpaper + grease) | £40–£80 |
| Battery replacement | £60–£150 | £100–£200 |
| Alternator replacement | £80–£250 (DIY) | £200–£500 |
| Halogen bulb replacement | £8–£25 | £30–£60 |
| HID bulb replacement | £30–£80 | £80–£180 |
Prevention — Keeping Your Headlights Reliable
Test headlights before every night drive. This takes 10 seconds — walk to the front of the car and confirm both headlights are on and at full brightness. Catching a dim or flickering headlight before it fails completely gives you time to fix it before a crisis.
Check battery condition annually on any battery over 3 years old. A free load test at a parts shop takes 5 minutes and tells you if the battery is declining before it causes problems. See our article on why won’t my brand new car battery hold a charge for more on what causes batteries to fail prematurely.
Keep a spare relay and fuse kit in the car. Relays and fuses for your specific vehicle cost almost nothing and take up no space. Carrying the right fuse amperage means a blown fuse is a 2-minute roadside fix rather than a tow.
Hella Automotive Relay — universal 5-pin relay, fits most vehicles]
Replace headlight bulbs in pairs. Halogen bulbs of the same age and usage have very similar lifespans. When one fails, the other is close behind. Replacing both at once prevents the second roadside failure a few weeks later.
Have charging system tested at each service. Alternator and battery health checks should be part of every annual service — they take 5 minutes with proper equipment and catch failing components before they strand you.
Frequently Asked Questions
Why do my headlights turn off randomly but come back on by themselves? Intermittent self-restoring headlight failures are almost always caused by a failing relay or a loose wiring connector. Both can momentarily lose connection then restore it — creating the on/off pattern. The relay is cheap and easy to swap first. If the problem returns after a new relay, check every wiring connector in the headlight circuit.
Can a bad alternator cause headlights to flicker and cut out? Yes — a failing alternator that can’t maintain 13.8–14.4V output causes voltage to drop as the battery discharges. Headlights, which need stable voltage to operate at full brightness, begin to dim and eventually cut out as battery voltage drops below their operating threshold. Other electrical systems usually show problems too.
My headlights work fine when cold but cut out after 20–30 minutes. Why? This heat-related pattern is classic for two causes: a failing relay whose contacts only lose connection when expanded by heat, or a wiring connector that’s borderline and loses contact as the plastic housing expands. Heat-related electrical failures are notoriously difficult to reproduce in a cold workshop — describe this exact pattern to your mechanic so they know what they’re looking for.
Both my headlights cut out at exactly the same time. What does that mean? Simultaneous failure of both headlights points to a shared component: the headlight relay (which controls both), the fuse (which protects both), the headlight switch, a shared ground point, or a charging system failure. Individual bulb failure is almost never the cause of simultaneous both-headlight failure.
Is it illegal to drive with headlights out? Yes. In the UK and most countries, it is a legal requirement to have functioning headlights during the hours of darkness and in conditions of poor visibility. Driving with failed headlights risks a fixed penalty notice, points on your licence, and invalidates your insurance in the event of an accident. More importantly, it’s genuinely dangerous.
Can water cause headlights to randomly turn off? Yes — water ingress into headlight housings, fuse boxes, or wiring connectors causes corrosion that creates intermittent electrical faults. If your headlight problems are worse in wet weather or after rain, inspect the headlight housing seals for cracks and check the fuse box for moisture. See our article on water in car fuse box for diagnosis and repair.
How urgent is this to fix? Extremely urgent. Unlike most car faults that can be monitored for a while, failing headlights are an immediate safety risk every time you drive after dark or in low visibility conditions. Don’t defer this repair.
When exactly do your headlights cut out — immediately on startup, after 20 minutes of driving, when you hit a bump, or when you turn on another electrical system? That pattern is the most useful clue for diagnosis — leave it in the comments.