electrical
Sunroof Motor
for 2021 Ford F-150 3.5L V6 EcoBoost · 4WD
Editorial review:Chris Hackleman — Master Technician · 20+ years
Difficulty
Moderate
Time
2.4 h
Tools
8
Steps
14
✓Expert-verified. Personally reviewed and approved by OLP's master technicians (Chris Hackleman — 20+ years each). Always follow the vehicle's factory service information and torque specs.
This procedure covers the removal and replacement of the panoramic sunroof motor assembly on 2021-2024 Ford F-150 trucks equipped with a power sunroof system.
Warnings
⚠Disconnecting battery will erase radio presets and may require sunroof recalibration after repair
⚠Do not manually force sunroof glass movement while motor is disconnected - damage to mechanism may occur
ℹ️Work in a clean environment to prevent debris from entering sunroof tracks during headliner removal
Tools required
Metric socket set (8mm-13mm)Essential
Torque wrench (4-40 Nm range)Essential
Trim panel removal toolsEssential
T20, T25, T30 Torx driversEssential
Flashlight or work lightEssential
As an Amazon Associate and Autel/ANCEL partner, OLP earns from qualifying purchases — how we link. This never changes the specs we publish.
Parts
- Sunroof motor assembly × 1 — Use OEM Ford specification
- Sunroof motor mounting hardware kit (if damaged) × 1 — Ford sunroof fastener kit
As an Amazon Associate and Autel/ANCEL partner, OLP earns from qualifying purchases — how we link. This never changes the specs we publish.
Preparation
- Park vehicle on level surface and engage parking brake
- Ensure sunroof is in the fully closed position before beginning work
- Disconnect negative battery terminal and wait 2 minutes for airbag system capacitor discharge
- Tape off sunroof glass edges with masking tape to prevent accidental scratching
- Remove front overhead console trim panel by gently prying at rear edge with trim tools
- Lower headliner at sunroof area - remove sunvisor mounting screws and dome light assemblies as needed for access
Procedure
- 1Remove headliner support panelsLocate and remove the headliner support panels surrounding the sunroof opening. Use T25 Torx driver to remove fasteners securing the panels. Carefully lower headliner material approximately 6-8 inches to access sunroof motor area. Support headliner with clean cardboard or foam to prevent creasing.
- 2Disconnect sunroof drain tubesIdentify the four sunroof drain tubes at each corner of the sunroof frame. Gently disconnect drain tubes from frame nipples by pulling straight down with slight twisting motion. Mark tube positions with tape to ensure correct reinstallation. Cap or plug tubes to prevent debris entry.
- 3Locate sunroof motor assemblyThe sunroof motor is mounted on the driver side of the sunroof track assembly, typically forward of the glass panel opening. Identify the motor housing - it will be a black or silver rectangular unit approximately 6 inches long with a drive cable extending to the sunroof mechanism.
- 4Disconnect motor electrical connectorLocate the electrical connector on the sunroof motor body. Press the connector locking tab and carefully pull connector straight away from motor. Do not pull on wires. Inspect connector terminals for corrosion or damage - clean with electrical contact cleaner if needed.
- 5Mark motor position and disconnect drive cableBefore removing motor, mark the motor housing position relative to the mounting bracket with a permanent marker or tape for reference during installation. Locate the drive cable connection - typically a white plastic gear housing. Press cable release tab and carefully disconnect drive cable from motor output shaft. Support cable to prevent it from retracting into track.
- 6Remove motor mounting boltsRemove the motor mounting bolts securing the motor to the sunroof track bracket using appropriate socket. There are typically 2-3 bolts holding the motor assembly. Support motor with one hand while removing final bolt to prevent it from falling. Carefully extract motor from mounting location.Torque specModule Mounting Bolts8 Nm (6 lb-ft)
- 7Inspect mounting area and drive cableWith motor removed, inspect the mounting bracket for cracks or damage. Check drive cable for kinks, fraying, or binding. Verify sunroof tracks are clean and free of debris. Apply small amount of white lithium grease to drive cable teeth if dry or corroded. Check that sunroof mechanism moves freely by hand (do not force).
- 8Install new sunroof motorPosition new motor assembly in mounting location, aligning with marks made during removal. Ensure motor output shaft aligns with drive cable connection point. Insert mounting bolts by hand and thread them finger-tight before torquing. Do not fully tighten until drive cable is connected.
- 9Connect drive cable to motorCarefully align drive cable connector with motor output shaft. Push cable connector onto shaft until it clicks into locked position - you should hear and feel a distinct click. Gently tug on cable to verify secure connection. Verify cable routing matches original path without kinks or sharp bends.
- 10Torque motor mounting boltsUsing calibrated torque wrench, tighten motor mounting bolts to specification in a cross pattern if multiple bolts are present. Verify motor sits flush against mounting bracket with no gaps.Torque specModule Mounting Bolts8 Nm (6 lb-ft)
- 11Reconnect electrical connectorAlign electrical connector with motor receptacle, ensuring connector orientation is correct. Push connector firmly onto motor until locking tab clicks into place. Verify secure connection by gently pulling on connector body (not wires).
- 12Reconnect drain tubesReattach sunroof drain tubes to frame nipples at all four corners, matching marked positions from removal. Push tubes onto nipples until fully seated - approximately 1 inch of insertion. Verify tubes are not kinked and follow original routing paths down A-pillars and rear quarters.
- 13Test sunroof operation before final assemblyReconnect negative battery terminal temporarily. Turn ignition to ON position (engine off). Test sunroof operation using overhead console controls - verify smooth opening, closing, venting, and auto-close functions. Listen for unusual noises. If sunroof does not operate correctly or shows error on display, perform sunroof initialization procedure per Ford service manual. Disconnect battery again before continuing.Torque specBattery Terminal Bolts6 Nm (4 lb-ft)
- 14Reinstall headliner componentsCarefully raise headliner back into original position. Reinstall headliner support panels and secure with T25 Torx fasteners. Reinstall dome light assemblies and sunvisor mounting hardware. Install overhead console trim panel by snapping into place.
Reassembly
- Reconnect negative battery terminal and torque to specification
- Perform sunroof initialization: Press and hold sunroof close button until glass fully closes and continues to run for 3-5 seconds past closed position to recalibrate limit stops
- Test all sunroof functions including vent, slide, and auto-close/anti-pinch features
- Verify drain tubes are properly routing water during test - pour small amount of water in sunroof track channels and verify drainage
- Reset clock and radio presets as needed
Verification
- Operate sunroof through complete cycle multiple times - verify smooth, quiet operation with no binding or hesitation
- Test auto-reverse safety feature by placing obstruction in sunroof path during closing - glass should reverse immediately
- Check for sunroof error codes or warning lights on instrument cluster
- Verify headliner sits flush with no gaps or misalignment around sunroof opening
- Test drain tubes by pouring water into sunroof tracks at all four corners - water should exit beneath vehicle near wheels within seconds
- Confirm no rattles or unusual noises during sunroof operation or vehicle movement
Related trouble codes on this vehicle
Codes that commonly send this job to the bay — tap one for symptoms, causes, and diagnostic steps.
B0240Sunroof Motor CircuitB0241Sunroof Position Sensor CircuitU0160Lost Communication with Sunroof Control ModuleU0260Lost Communication With Sunroof Control Module
Chasing one of these codes and not sure which part is guilty? Ask a master mechanic about YOUR car →