7 Pin Trailer Wiring Diagram: Pin Colors, Functions and How to Wire It
A 7 pin trailer plug (the flat-blade “RV style” connector) carries seven circuits: ground, tail/running lights, left turn/brake, right turn/brake, electric brakes, 12V auxiliary power and reverse lights. On the common RV color code, white is ground, green is tail lights, red is left turn, brown is right turn, blue is electric brakes, black is 12V power and yellow is reverse (the center pin). Many utility trailers use a different color code, so always confirm each wire with a tester before you connect anything.
The 7 pin connector is the standard plug for travel trailers, boat trailers with surge brakes, horse trailers and most trailers that have electric brakes. It looks complicated, but each pin does one simple job. Once you know the functions, wiring or fixing a plug is a calm 30-minute job.
This guide gives you the 7 pin trailer wiring diagram by function, both common color codes, a step-by-step wiring method, and a quick fix list for when the lights or brakes stop working.

7 Pin Trailer Wiring Diagram: Pin Functions and Colors
| Function | RV color code | Utility color code | What it powers |
|---|---|---|---|
| Ground | White | White | Return path for every circuit |
| Tail / running lights | Green | Brown | Tail, side marker and license plate lights |
| Left turn and brake | Red | Yellow | Left stop and turn light |
| Right turn and brake | Brown | Green | Right stop and turn light |
| Electric brakes | Blue | Blue | Signal from the brake controller to the trailer brakes |
| 12V auxiliary / battery charge | Black | Black | Breakaway battery, RV battery charging, interior lights |
| Reverse lights (center pin) | Yellow | Purple | Backup lights or surge-brake lockout |
The RV code is what most travel trailers and fifth wheels use. The utility code follows the old 4-pin flat plug colors, so a boat or cargo trailer often has yellow for left, green for right and brown for tail lights. Ground, brakes and 12V power usually stay the same in both.
Trailer builders and previous owners often use whatever wire was on hand. Before you crimp anything, test each wire with a circuit tester or multimeter and wire by function, not by color. The pin positions are also marked on the back of most plugs.
What Each Circuit Does
- Ground (white): The most important wire. A weak ground causes dim, flickering or “crazy” lights where one signal turns on another light. Run it to clean bare metal on the trailer frame.
- Tail lights: On whenever the tow vehicle’s headlights or parking lights are on.
- Left and right turn/brake: Each side flashes for a turn and stays on for braking. Most U.S. trailers combine stop and turn on one bulb per side.
- Electric brakes (blue): Carries a variable signal from the brake controller in the tow vehicle. Without a working controller, the trailer brakes will not work.
- 12V auxiliary (black): Live battery power from the tow vehicle. It charges the trailer’s breakaway or house battery and can run small interior loads.
- Reverse (center pin): Turns on backup lights, or switches off surge brakes on boat trailers when you reverse.
How to Wire a 7 Pin Trailer Plug
This method works for replacing the plug on the trailer side. Disconnect the trailer from the vehicle before you start.
Cut the cable just behind the damaged plug, leaving as much good wire as possible.
Put the plug’s back cover and cable boot over the cable first. It is easy to forget and then you have to start again.
Remove about 1.5 inches of the outer jacket and strip about 3/8 inch from each wire. Twist the strands so none stick out.
Use a test light or multimeter, or follow each wire back to the light it feeds, and write the function on a piece of tape.
Match each function to the terminal marked on the plug: ground, tail, left, right, brake, 12V and reverse. Tighten each screw firmly.
Add dielectric grease on the terminals, close the housing and tighten the cable clamp so the wires cannot pull out.
Plug into the tow vehicle and check tail lights, both turn signals, brake lights, reverse and the trailer brakes before you drive.

Trailer Lights or Brakes Not Working? Quick Fixes
| Problem | Most likely cause | Fix |
|---|---|---|
| All lights dead | Bad ground or blown vehicle fuse | Clean the ground point, check the tow vehicle’s trailer fuses |
| Lights dim or flicker | Weak ground or corroded pins | Clean pins with contact cleaner, add dielectric grease |
| Wrong light comes on | Wires swapped or bad ground | Re-check functions with a tester |
| One side not working | Bulb, socket or broken wire on that side | Swap the bulb, check the wire along the frame |
| Trailer brakes not working | No brake controller signal or bad blue wire | Check the controller reads “connected”, test the blue pin |
| Trailer battery not charging | 12V circuit not active in the vehicle | Check the vehicle’s trailer battery fuse or relay |
If your truck has a trailer setting in its menu, make sure it is switched on. Some vehicles also need the trailer lighting module or fuse installed by the dealer. For brand-specific help, see how to activate trailer lights on a Jeep Grand Cherokee.
7 Pin vs 4 Pin Trailer Plugs
A 4 pin flat plug only carries ground, tail lights and the two turn/brake circuits. That is fine for a small utility trailer with no brakes. You need a 7 pin plug when the trailer has electric brakes, a battery to charge, or reverse lights. Adapters are cheap, but a 7-to-4 adapter will not give you brakes or 12V power on the trailer.
- Buy a cheap plug-in 7 way tester. It shows each circuit on the vehicle side in seconds.
- Keep a dust cap on the plug when it is not connected to stop corrosion.
- Use heat-shrink butt connectors for any splices under the trailer.
- Check the breakaway battery and switch at the start of every towing season.
- Before a long trip, check tire pressure and load. Our guide to RV trailer tires covers what to look for.
A 7 pin trailer plug has seven simple jobs: ground, tail lights, left and right turn/brake, electric brakes, 12V power and reverse. White is always ground, but other colors vary between RV and utility trailers, so test every wire and connect by function. Most problems are a bad ground or corroded pins, which take minutes to fix.
7 Pin Trailer Wiring FAQs
On the common RV code: white is ground, green is tail lights, red is left turn/brake, brown is right turn/brake, blue is electric brakes, black is 12V power and yellow is reverse. Utility trailers often use yellow for left, green for right, brown for tail and purple for reverse.
The center pin is usually the reverse light circuit. On boat trailers it can switch off surge brakes when backing up. If the trailer has no reverse lights, it can be used as an extra auxiliary circuit.
The white wire is ground on almost every 7 pin plug. It should be bolted to clean, bare metal on the trailer frame.
The lights use different circuits from the brakes. Check that a brake controller is installed and shows the trailer as connected, then test the blue brake wire and the brake magnets.
You need a 7 pin plug if your trailer has electric brakes, a battery that charges from the tow vehicle, or reverse lights. A small trailer with only lights can use a 4 pin plug.
Yes, for lights only. The adapter passes ground, tail and turn/brake signals, but not electric brakes, 12V power or reverse.
- 7 circuits: ground, tail, left, right, brakes, 12V, reverse.
- White is ground. Blue is brakes. Black is 12V.
- Turn and tail colors differ between RV and utility trailers.
- Test each wire and wire by function, not color.
- Bad grounds and corroded pins cause most problems.
