The headlight bulb on a 2004 Nissan Xterra is replaced by reaching behind the headlight assembly to swap in a fresh bulb of the same type, then testing and aligning the beam. While most models use a dual-filament halogen bulb, check your specific bulb type in your owner’s manual or on the bulb itself before buying a replacement.
This article walks you through identifying the correct bulb, gathering tools, accessing the headlight from the engine bay or wheel well, performing the replacement, and testing and aligning the beam for safe nighttime visibility.
Identify bulb type and safety considerations
Knowing the exact bulb type and following basic safety steps will prevent damage to the headlight housing and ensure a proper fit. The Xterra commonly uses a dual-filament H4 (also labeled 9003) bulb in the headlight assembly, but confirm the precise specification for your vehicle. Always disconnect power when working on electrical components and wear gloves to avoid transferring oils to the bulb glass.
Tools and parts you’ll need are listed below to help you prepare before starting the job.
Gather the following tools and parts before you begin.
- Replacement headlight bulb of the correct type (H4/9003 or the type specified for your Xterra)
- Clean gloves or a clean microfiber cloth to handle the bulb without touching the glass
- Flat-head screwdriver (optional, may help with dust caps or clips)
- External light source or bright shop light for visibility
- Owner’s manual or a bulb-compatible parts diagram for verification
With the right bulb and tools on hand, you’ll be ready to access the headlight and complete the replacement smoothly.
Accessing the headlight from the engine bay
The engine bay method is the most common approach on the Xterra. Depending on trim and how your engine bay is configured, you may also need to remove the air intake components or slightly reposition the battery to gain access.
- Park the vehicle on a level surface, turn off the engine, and open the hood. For safety, disconnect the negative battery terminal if you’ll be working near electrical connections.
- Locate the back of the headlight assembly. Remove the dust/retaining cap by twisting it counterclockwise to expose the bulb.
- Unplug the electrical connector from the rear of the bulb. If there is a spring clip or retaining ring, release it or rotate the socket to unlock the bulb.
- Carefully pull the old bulb straight out of the housing. Avoid touching the glass with bare skin or fingers.
- Compare the new bulb with the old one to ensure correct type and wattage before installation.
Install the new bulb by reversing the removal steps: connect the electrical plug to the new bulb, seat the bulb in the housing, secure it with the retaining clip or by rotating the socket as required, and replace the dust cap. Reconnect the battery terminal if you disconnected it and ensure all tools and old bulb are cleared from the engine bay.
Alternative access through the wheel well
If engine-bay access is restricted or you prefer a different route, you can access the headlight from the wheel well by removing the inner fender liner. This method can provide a clearer view of the rear of the headlight housing and may be easier on some builds.
Steps for wheel-well access are similar in principle to the engine-bay method: you’ll remove the inner liner to reach the back of the headlight, loosen the dust cap, disconnect the wiring, release the bulb, and install the replacement. Be mindful of sharp edges and ensure the vehicle is secure if you’re working with the wheel removed.
After replacing the bulb via either route, reassemble any panels or liners you removed and reconnect any components you detached.
Test, aim, and finalize
With the new bulb installed, it’s essential to test both the low and high beams and to align the headlights for proper road visibility. Incorrect aim can blind oncoming drivers and reduce your night-time visibility.
- Reconnect the battery if you had it disconnected and close the hood.
- Turn on the headlights to verify the new bulb lights up. Check both low-beam and high-beam functions if applicable.
- To aim, park on a flat surface about 25 feet from a wall or garage door, and mark a vertical and horizontal line on the wall. Adjust the headlight alignment screws on the headlight housing as needed using a flat-head screwdriver until the beam pattern aligns with the markings.
- Test the alignment from the driver's seat at night to ensure the beam hits the right area of the road without blinding traffic.
If the bulb doesn’t illuminate after installation, double-check the electrical connector, reseat the bulb, and verify you installed the correct bulb type. If problems persist, consult a professional to inspect the wiring or the headlight assembly seal.
Summary
Changing a headlight on a 2004 Nissan Xterra involves identifying the correct bulb type, preparing the right tools, and accessing the back of the headlight either from the engine bay or via the wheel well. After removing the old bulb and installing a new one, test the lights and adjust the beam alignment for safe night driving. While the basic process is straightforward, some trims may require extra steps, so consult your owner’s manual for any model-specific nuances.
For most drivers, this is a DIY-friendly task that can be completed in about 20–40 minutes with the proper bulb and a few basic tools.


