Part of our iHaaS deep-dive series. New to HaaS? Start here.
Quick answer: A headlamp fogs when the inner surface of the lens drops below the dew point of the air inside the housing. It happens after a car wash, rain or a cold night because the lens cools faster than the air behind it, and LED lamps are more prone to it because they give off far less heat than halogen. To validate a fix, put a sensor that reads surface temperature on the inner lens, run hot-cold cycles in a climate room, and judge the design on dew point margin and time to clear.
The lamp passed its tests. Then field photos start coming in: a milky film across the lower half of the lens after a car wash, or droplets on a cold morning that take an hour to clear. Warranty wants to know if it's a seal problem. It may not be a leak at all. It may be physics working exactly as it should.
At ATMOSIScience®, automotive headlamps are one of the applications for our anti-condensation packs, built for hot-cold cycling with anti-fog and dehumidification in mind. We use our HaaS DEW sensors and climate room to validate them. This guide is for automotive lighting engineers and the teams designing camera and radar modules. (If you're a driver with a fogged lamp, a dealer or lamp specialist can check the vent and seals. The rest of this is about designing and validating the lamp.)
Why headlamps fog: the lens loses the race
A study from Brno University of Technology, published in Energies, sets out the basics. Fogging occurs when the internal parts of the headlamp fall below the dew point, and the front glass is the part most vulnerable to condensation. Fogging reduces lamp performance, can cause malfunctions and affects traffic safety (Guzej and Zachar, Energies, 2019).
The same paper explains why the problem got harder. LEDs emit far less heat than the halogen lamps they replaced. Less heat inside the lamp means less heat reaching the lens, so the lens tracks the outside air more closely and slips below the dew point more easily.
Where does the water come from? The authors list three routes:
- The venting system. Lamps are vented, and the venting system can bring in air with higher humidity.
- Sorption. Plastic parts take up moisture, and can give it back to the air as they warm.
- Permeation. Water vapor passes slowly through the housing and lens materials.
None of these is a defect. You can't design them out completely, so the job is to manage them.
Three moments that fog a lamp
Every fog event has the same shape: something makes the lens cold quickly while the air behind it is still warm and carrying vapor. Three everyday moments do that:
- A car wash or rain after a drive. The lamp is warm, the air inside has picked up moisture from warm plastics, and then cold water hits the lens. The lens cools in minutes. The air behind it doesn't.
- Switch-off on a cool, damp evening. The lamp cools down and draws outside air in through the vent. The lens is thin and exposed, so it reaches outside temperature first.
- A cold start. When the lamp comes on, warming plastics can release absorbed moisture into the air while the lens is still cold from the night.
Hot-cold cycling is the common thread. That's why a static humidity test can pass a lamp that fogs in the field.
Worked example: reading one fog event
Here's the arithmetic behind a car-wash fog event. These are example readings, chosen to show the math. Assume the amount of water vapor inside stays the same during the event (in reality a little of it condenses, which pulls the dew point down slightly).
After a drive, the air inside the lamp is at 32 °C and 45% RH. Using the Magnus formula with the World Meteorological Organization's constants (WMO-No. 8, Annex 4.B):
- Saturation vapor pressure at 32 °C: 6.112 × exp(17.62 × 32 / (243.12 + 32)) = 47.4 hPa
- Actual vapor pressure: 45% of that = 21.4 hPa
- Dew point: the temperature where 21.4 hPa is saturation = 18.6 °C
Now follow the event. Dew point margin is lens temperature minus dew point:
| Moment | Air inside | RH inside | Inner lens | Margin |
|---|---|---|---|---|
| Lamp off after a drive | 32 °C | 45% | 30 °C | +11.4 °C, dry |
| 5 min after the cold rinse | 28 °C | 57% | 14 °C | -4.6 °C, fogging |
| 20 min later | 24 °C | 72% | 15 °C | -3.6 °C, still fogging |
| 15 min after lamp-on | 26 °C | 64% | 24 °C | +5.4 °C, drying |
Three things to notice:
- RH climbed from 45% to 72% without a gram of water added. The air just got cooler. An RH reading alone can't tell you whether the lens is wet.
- The air never reached its dew point. The lens did. Condensation is decided at the surface, which is why you need a surface temperature probe.
- A positive margin isn't the same as a clear lens. Once the margin turns positive, droplets start to evaporate, but that takes time. Measure time to clear separately, with a camera or a timed visual check.
The design levers, and what to test for each
You have more levers than you might think. Each one changes the margin in a different way, so each needs its own check in validation.
| Lever | What it changes | What to check in testing |
|---|---|---|
| Vent position and type | How fast humid air enters, and how fast fog clears while driving. The Brno authors note vents are placed where pressure differences are highest, and their defogging test applied pressure at the vent holes to mimic a moving vehicle. | Time to clear with airflow, and moisture pickup during a humid soak |
| Heat reaching the lens | How cold the lens gets relative to the air | Lens surface temperature during lamp-on and after switch-off |
| Assembly humidity | How much water is sealed in from day one | Dew point inside a fresh lamp before the first cycle |
| An anti-condensation pack inside the housing | Moisture inside the housing: the pack absorbs moisture first and blocks condensation | Minimum margin and minutes below zero, against a baseline lamp |
Our anti-condensation packs use reversible absorption and desorption materials that absorb moisture first and block condensation. For the assembly-humidity math, see our battery enclosure guide. The physics is the same in a lamp.
How to validate an anti-fog fix
A fix you can't measure is a guess. Here's how we set up a validation.
1. Put the surface probe where fog starts
Our DEW condensation sensors read air temperature, humidity and surface temperature together, and condensation is calculated from those three readings. Stick the surface probe on the inner lens where field fog appears first, or where the lens is farthest from any heat source. Put a second sensor near the vent to see what the incoming air carries.
- Round high-temperature DEW: -10 to 105 °C, 33 mm diameter × 6.5 mm, built-in battery rated for 1 year.
- External-battery high-temperature DEW: -10 to 105 °C, just 17 × 28 × 3.5 mm, rated for 18 months at 1-minute sampling. Use it in tight gaps between the reflector and the lens.
Keep sensors away from any spot that runs hotter than 105 °C, such as the LED heat sink itself. For more on the hardware, see Inside the HaaS Sensor Kit.
2. Cycle it in a climate room
Our climate room is about 20 m² with a 3 m ceiling and a range of -20 to 60 °C. It holds 30 to 90% RH above 30 °C and 40 to 90% RH at 10 °C, so a full hot-humid to cold-damp cycle fits inside it. Here's an example cycle. Tune the numbers to your vehicle and markets.
| Phase | Chamber | Lamp | What it does |
|---|---|---|---|
| 1. Humid soak | 35 °C, 85% RH | Off | Loads the air and the plastics with moisture |
| 2. Drive | 35 °C, 85% RH | On | Warms the housing and drives moisture out of the plastics |
| 3. Wash shock | Stepped down to 10 °C, 80% RH, plus a timed cold-water rinse on the lens | Off | Creates the fog event |
| 4. Recovery | 10 °C, 80% RH | On | Measures time to clear |
Run the same cycle on a baseline lamp and on the fixed lamp, side by side, for enough cycles to see a trend. Log at 1-minute intervals, because a fog event develops in minutes. Memory isn't the limit here: each sensor stores 260,000 records, which at 1 minute is 260,000 / 1,440 = about 180 days.

3. Analyze the margin, not the RH
The HaaSMind Condensation Analysis Platform runs the numbers. You pick the devices, set a time window (one cycle, or the whole campaign) and run the analysis. Two settings matter for lamps:
- Surface-temperature correction. You can enter a correction value for the surface reading. A practical way to choose it is to compare the probe with a reference thermocouple on the same lens spot.
- Missing surface temperature. If a surface reading drops out, the platform can approximate it with air temperature and flags the result with a warning. Treat those stretches with care: the air inside a lamp is always at or above its own dew point, so an air-based margin can't show fog on a lens that's colder than the air. Use them to keep a run continuous, not to sign off a design.
Then judge the fix on four numbers per cycle:
| Metric | How it's calculated | What it tells you |
|---|---|---|
| Minimum margin | Lowest value of lens temperature minus dew point | How deep the fog event went |
| Minutes below zero | Time with a negative margin | How long water was forming |
| Time to clear | Lamp-on to a visibly clear lens | What the driver actually sees |
| Cycle-to-cycle trend | Dew point inside at the start of each cycle | Whether water is building up over time |
The last one is the quiet killer. A lamp that clears fine in cycle 1 but starts each new cycle with a higher internal dew point is accumulating water, and it will fog worse in the field than in a short test. More on how the models handle data in our HaaSMind guide.
Cameras and radar: same physics, smaller cavities
Camera and radar modules are on our anti-condensation pack application list too, where the goal is stable control and reduced interference. A fogged camera window blurs the image. Moisture on the inside of a radar cover is the same kind of problem. The cavities are much smaller than a headlamp, so a few milligrams of water matter more, and space for a sensor is tight. That's where the 17 × 28 × 3.5 mm external-battery DEW sensor earns its place. The validation logic doesn't change: surface probe on the coldest window, margin as the metric, and a baseline to compare against. For the general enclosure case, see our enclosure condensation guide.
Frequently asked questions
Why does my headlight have condensation inside?
Because the inside of the lens got colder than the dew point of the air in the lamp. That usually happens after a car wash, rain or a cold night, when the lens cools faster than the air behind it. For a car owner, a dealer or lamp specialist can check the vent and seals.
Why do LED headlights fog more than halogen?
LEDs emit far less heat than halogen lamps, so less heat reaches the lens. The lens stays closer to outside temperature and drops below the dew point of the air inside more easily.
How do you test a headlamp for condensation?
Instrument the lamp with a sensor that reads surface temperature on the inner lens plus air temperature and RH, then run hot-humid to cold-damp cycles in a climate room with a timed cold rinse. Compare a baseline lamp and a fixed lamp on minimum dew point margin, minutes below zero, time to clear and cycle-to-cycle trend.
Where should a condensation sensor go inside a headlamp?
Put the surface probe on the inner lens where fog appears first, or on the area farthest from any heat source. Add a second sensor near the vent. Keep both away from parts hotter than 105 °C.
Do anti-condensation packs work in headlamps?
Automotive headlamps are one of the applications our anti-condensation packs are designed for, with hot-cold cycling and anti-fog and dehumidification in mind. They absorb moisture first in the enclosed space and block condensation. Tell us the lamp design and test cycle, and we'll suggest a pack and a validation plan.
Validate your anti-fog fix with data
Tell us about the lamp or module and the conditions it fogs in. We'll suggest a sensor layout, a material and a climate-room cycle.
Prefer email? info@atmosiscience.com
Sources: Guzej and Zachar, CFD Simulation of Defogging Effectivity in Automotive Headlamp, Energies 12(13), 2609 (2019); World Meteorological Organization, Calibration of humidity instruments, Part 1 (citing WMO-No. 8, Annex 4.B). Worked examples are our own calculations.