How to Stop Car Windows from Steaming Up: Testing 5 Anti-Fog Treatments

ChrisFix
Feb 20, 2015 • 5 min read

You can buy a special treatment to keep your car windows from fogging up, but can something already sitting in your bathroom do the same job?

I tested Rain-X Anti-Fog against four household remedies: shaving cream, baby shampoo, a potato, and hand sanitizer. Each one went on a separate section of the same window, then I exposed the glass to steam to find out which treatments actually kept it clear.

Shaving cream matched the store-bought anti-fog treatment in this test. The other household remedies were a different story. Here is how I applied each product, what happened when the moisture hit, and which one I would use again.

Why Car Windows Fog Up

Fogging comes down to moisture and temperature. When humid air meets glass that is cold enough, moisture condenses on the surface and makes it difficult to see through. The National Weather Service explains the same relationship between cooling, moisture, and condensation in its guide to fog formation.

In winter, the glass is cold while your breath adds warm, humid air inside the car. That gives you the right conditions for condensation on the inside of the window.

Temperature differences matter in summer, too. Air conditioning cools the cabin and glass while the air outside may be warm and humid. Which side fogs depends on where the moist air meets the cold surface.

The goal here is prevention: treat clear glass first, then see whether it stays clear when exposed to moisture.

Setting Up the Anti-Fog Test

Before applying anything, I held a pot of hot water near the untreated side window. The steam fogged the glass completely. That was the control test: it confirmed that the untreated window would fog under these conditions.

I then cleaned the glass and used tape to divide it into five sections:

  • Top left: Rain-X Anti-Fog.
  • Top right: Shaving cream.
  • Bottom left: Baby shampoo.
  • Bottom middle: Potato.
  • Bottom right: Hand sanitizer.

Each treatment needed to cover its entire section. I also used fresh paper towels between products so I would not accidentally transfer one treatment into another section.

How I Applied Each Treatment

1. Rain-X Anti-Fog

The store-bought anti-fog treatment was the benchmark for the household products.

  1. Put some product on a paper towel.
  2. Rub it over the entire section of glass.
  3. Use a dry part of the towel to wipe lightly and remove streaks.

It was straightforward to apply and did not take much effort to get the glass clear.

2. Shaving Cream

For the shaving cream, I put a small amount directly onto the glass and worked it across the section with a fresh paper towel.

At first, it left an obvious coating. The next step was to buff that coating until the window looked clear again.

Shaving cream spread across the upper right section of a taped car window
Spread the shaving cream over the entire section, then buff until the glass is clear.

This took more buffing than the Rain-X. It did eventually become clear, but there was a little more work involved in getting there.

3. Baby Shampoo

Baby shampoo was a treatment I already used on my scuba mask. If it could keep a mask clear 60 feet underwater, it seemed worth trying on the truck window.

I put a little shampoo on a paper towel, spread it over the bottom-left section, and then lightly wiped it with a clean towel to remove streaks.

The idea was to leave the treatment behind without leaving an obvious smear. I wanted clear glass, not to wipe away the entire layer I had just applied.

4. Potato

A potato might sound like an odd choice, but it is an old anti-fog trick I had heard about through scuba diving. I had never actually tried it, so this was a good opportunity to put it to the test.

I cut the potato open and rubbed the cut face over the entire bottom-middle section. The liquid it left behind looked surprisingly clear. After a light buff with a fresh paper towel, the glass looked streak-free.

So far, so good. But looking clear before exposure to moisture was only half the job.

5. Hand Sanitizer

Hand sanitizer was the final treatment. The reasoning behind this remedy is its alcohol content, but I wanted to see whether that translated into any useful anti-fog performance.

I applied a small amount, rubbed it over the bottom-right section, and buffed it with a fresh paper towel until it looked clear, just like the other sections.

The Steam Test: Which Products Kept the Window Clear?

With all five treatments applied, I brought back the pot of steaming hot water and exposed the window to moisture again. The difference between the sections became obvious.

Taped car window with clear upper sections and cloudy lower sections
Rain-X and shaving cream kept the upper sections clear; the three lower treatments left poor visibility.
  • Rain-X Anti-Fog: Worked very well. The glass stayed clear.
  • Shaving cream: Also worked very well, with clarity comparable to the Rain-X section.
  • Baby shampoo: Left a residue when exposed to humidity. The glass did not look clear, and the surface felt soapy.
  • Potato: Also left residue that reduced clarity, although it did not feel soapy like the shampoo.
  • Hand sanitizer: Failed to prevent fogging and performed the worst of the five treatments.

The baby shampoo and potato sections are an important reminder: glass that looks clear immediately after application may not stay clear when humidity increases. Both looked acceptable after buffing, but neither gave a good result once exposed to steam.

The baby shampoo result was especially interesting because of my experience using it on a scuba mask. That did not carry over to a successful result with this application on the truck window.

How to Use Shaving Cream to Help Prevent Window Fogging

Of the household remedies I tested, shaving cream was the clear winner. If you already have some at home, it is the one I would choose from this group.

  1. Clean the glass first. Start with a clear surface, as I did for the comparison.
  2. Apply a small amount of shaving cream. Work it evenly over the area with a clean paper towel.
  3. Buff until clear. Keep working until the visible coating and streaks are gone.
  4. Check the finished glass. The treatment should not leave haze that interferes with visibility.

In a separate side-by-side comparison, the untreated portion fogged heavily while the shaving-cream-treated portion stayed clear.

Car window divided by blue tape with fogged glass on the left and clear glass on the right
The untreated side fogged up, while the shaving-cream-treated side stayed clear.

The bottom line: shaving cream worked just as well as Rain-X Anti-Fog in this immediate steam test, although it took more effort to buff clear. Baby shampoo, potato, and hand sanitizer did not give results I would want on a car window.

This comparison shows how the treatments handled steam right after application. It does not establish how long the protection lasts. For the conditions tested here, though, shaving cream made a pretty impressive difference without needing a special anti-fog product.

Share

ChrisFix

I show you how to fix, maintain, and detail your own car with easy-to-follow, step-by-step guides using common hand tools.

© 2026 ChrisFix
Powered by Convella