How to Fix a Sunroof That Won’t Close

This post contains affiliate links. As an Amazon Associate, ReplaceKeyFob earns from qualifying purchases, at no extra cost to you.

Quick Answer

To fix a sunroof that won’t close, first check the sunroof fuse and try holding the Close switch until the glass fully stops, then keep holding for about 10 to 20 seconds to reset it. If it reverses, clean and lubricate the tracks. To close it right now, many sunroofs have a hex socket on the motor behind a headliner cover for manual closing.

A sunroof that will not close is a problem that cannot wait. Rain, dust and theft risk all go up the moment the glass is stuck open. Luckily, most causes are simple: the motor lost its position memory after a battery change, dirt in the tracks is triggering the pinch protection, or a fuse has blown.

This guide puts the fastest fixes first, then covers the emergency manual close, track cleaning, the reset procedure and when the problem is a broken cable or guide that needs a professional.

Sunroof Fix Quick Facts: how to fix a sunroof that won't close summary card

Why a Sunroof Will Not Close

Symptom Likely cause
Nothing at all when you press Close Fuse, switch or motor power
Closes partway, then reverses Pinch protection sensing resistance from dirt or dry tracks
Will not close completely, stops short Motor lost its position after battery change
Motor hums, glass does not move Stripped gear or broken cable
Glass closes crooked or makes clicking Broken guide or bent track
Works sometimes, not others Weak switch contacts or loose connector

Most modern sunroofs have anti-pinch protection, which reverses the glass if it senses resistance. Dirt, old grease and debris in the tracks can look like a hand in the way.

Fast Fixes to Try First

1. Check the fuse

Find the sunroof fuse in the fuse box diagram (often in the interior fuse panel). Replace it if blown. Our guide on how to check car fuses shows the method, and how to find the fuse box in your car helps if you are not sure where it is.

2. Make sure the car is on

Most sunroofs need the ignition in ON or ACC. Some close for a short time after you switch off, until a door is opened.

3. Try both switch directions

Press Tilt, then Close. Some sunroofs need the tilt motion to finish before the slide works.

4. Hold Close for the reset

Press and hold Close. When the glass reaches the closed position, keep holding for about 10 to 20 seconds. The motor may move slightly and then stop. This relearns the closed position on many vehicles.

Track Lube

Silicone or White Lithium Spray

Pick a sunroof-safe lubricant, often a light silicone spray or the grease your maker recommends. Avoid heavy oily sprays that collect dirt in the tracks.

Check Price on Amazon →

As an Amazon Associate, ReplaceKeyFob earns from qualifying purchases.

How to Close a Sunroof Manually in an Emergency

Most sunroof motors have a manual override for this exact situation.

  1. Look for a small cover near the sunroof switch or overhead console. On some cars, you remove the map light housing.
  2. Find the hex socket or slot on the end of the motor.
  3. Use the hex key from the car’s tool kit, if supplied, or an Allen key that fits (often 4 to 6 mm).
  4. Turn slowly to close the glass. Count the turns, because it takes many.
  5. Stop as soon as the glass is closed and sealed.

If you cannot find the override, check the owner’s manual index for “Sunroof, closing manually.” If the car has no override and rain is coming, tape heavy plastic over the opening from outside and park under cover.

Close a Stuck Sunroof: how to fix a sunroof that won't close step card

How to Reset a Sunroof

Resets matter most after a battery change or jump start, when the module loses the glass position. The general procedure on many cars:

  1. Turn the ignition to ON.
  2. Close the sunroof fully, or as far as it will go.
  3. Press and hold Close (or Tilt Up, on some models).
  4. Keep holding for about 10 to 30 seconds. The glass may move to full tilt, then cycle through open and close.
  5. Release when the motion stops.

Brand notes:

  • Honda and Acura: hold Close until the glass stops, then a few seconds more.
  • Toyota and Lexus: many reset by holding the tilt-up or close position until the glass moves slightly and stops.
  • GM: some models reset by holding Close for about 10 seconds after the glass stops.
  • BMW, Audi and VW: typically hold the switch in the tilt position for about 15 to 30 seconds until the glass makes a full cycle.

Your exact method is in the owner’s manual. If you recently replaced the battery, our guides on how to change a car battery without losing data and how to reset auto-up windows explain other systems that need relearning too.

How to Fix a Sunroof by Cleaning the Tracks

Dirt is the top reason a sunroof closes and then reverses.

  1. Open the sunroof fully.
  2. Vacuum the tracks with a narrow nozzle.
  3. Wipe the tracks and seals with a microfiber cloth and mild soapy water.
  4. Remove old, dark grease with a cloth and a little isopropyl alcohol.
  5. Apply a thin layer of the lubricant the maker recommends. Too much attracts dirt.
  6. Open and close the sunroof several times.

Clear the drains too

While the roof is open, pour a little water into each corner drain. It should drain under the car near the wheels. Clogged drains do not stop the glass from closing, but they cause water leaks into the headliner. A thin trimmer line gently clears them.

Sunroof Won’t Close Completely: Mechanical Causes

If the glass stops short or closes crooked after resets and cleaning:

  • Broken guide or slider: plastic pieces that ride in the track can snap. You may hear a click or see the glass lift on one side.
  • Stretched or broken cable: the motor drives the glass with cables on each side. A broken cable lets one side move while the other stays.
  • Stripped motor gear: the motor runs but nothing moves.
  • Bent track: usually after a heavy load on the roof or an accident.

These need parts and some disassembly, and on some cars the full sunroof cassette must come out.

See also  How to Open a Car Hood With a Broken Latch or Cable

Testing the Switch and Motor Power

When the sunroof does nothing at all and the fuse is good, the switch or the motor’s power feed is next.

  1. Listen closely near the headliner while a helper presses Close. A faint click means the relay or module is responding.
  2. Try the Open and Tilt directions. If one direction works and another does not, the switch contacts are the likely cause.
  3. If you have a multimeter, remove the switch panel and check for about 12 volts at the motor connector while pressing the switch.
  4. Wiggle the connector at the motor. Loose or corroded pins cause on-and-off behavior.

A worn switch is a common failure on older cars and usually costs much less than a motor. If voltage reaches the motor and it does not run, the motor has failed.

Sunroofs and global close from the key fob

Many cars close the windows and sunroof together when you press and hold Lock on the fob, or hold the key in the lock position at the driver door. If the sunroof responds to the fob but not the switch, the switch is the problem. If it ignores both, look at the motor, module or fuse.

Mistakes to Avoid

  • Forcing the glass by hand. You can break guides or crack glass.
  • Spraying heavy oil or WD-40 everywhere. It attracts grit and makes the problem worse.
  • Pressing the switch over and over while it reverses. Fix the cause first.
  • Driving fast with the glass stuck tilted. Wind can damage the mechanism.

When to Call a Pro and What It Costs

If the fast fixes, reset and cleaning do not work, the sunroof likely has a mechanical failure. Typical 2026 US costs:

  • Diagnosis: about $80 to $150
  • Sunroof track cleaning and lube at a shop: about $75 to $150
  • Sunroof motor replacement: about $250 to $600
  • Cable or guide repair: about $300 to $900
  • Full sunroof cassette replacement: about $1,000 to $2,500 or more

A sunroof or auto glass specialist is often cheaper than a dealer for these jobs. If you also want to close the windows remotely before rain, see how to roll down windows with the key fob since the same global open/close feature often controls the sunroof.

Frequently Asked Questions

How do I fix a sunroof that won’t close?

Check the fuse, hold the Close switch for 10 to 20 seconds after it stops to reset, clean and lubricate the tracks, or close it manually with the hex key on the motor.

How do I close a sunroof that is stuck open?

Remove the cover near the sunroof switch, insert the correct hex key into the motor and turn slowly until the glass closes.

Why does my sunroof close and then open again?

The anti-pinch system senses resistance, usually from dirty or dry tracks. Clean and lubricate the tracks, then reset.

Why won’t my sunroof close completely?

The motor may have lost its position after a battery change, or a guide or cable is broken. Try the reset first.

Can I drive with a sunroof that won’t close?

Yes, slowly and briefly. Cover the opening with plastic if rain is likely and get it fixed soon.

Author

  • ReplaceKeyFob Editorial Team

    The ReplaceKeyFob Editorial Team researches and writes practical guides on key fob batteries, smart keys, keyless entry problems and basic car electronics. Every guide is checked against manufacturer owner's manuals, battery maker specifications (CR2032, CR2025, CR1632 and others) and real-world troubleshooting before it is published, and we update articles when vehicle models or procedures change. Spotted an error? Contact us and we will review it.