Diagnose soonIf your brake lights aren't working, fix this immediately - other drivers can't see you braking.
Your brake light switch is sending conflicting signals. Your brake lights might not work - which is a safety issue - and cruise control may quit.
Model notes: Check brake light operation first - if the brake lights don't work, other drivers can't see you stopping.
Key facts
P0504 means brake switch A/B correlation. Your brake light switch is sending conflicting signals. Your brake lights might not work - which is a safety issue - and cruise control may quit. WrenchFair's published fair-price range for this repair is $15–$40 parts and $50–$120 labor at independent shops.
WrenchFair rates P0504 a 1-of-5 DIY difficulty (“A cheap part and a simple swap.”) with a “Diagnose soon” driveability rating: If your brake lights aren't working, fix this immediately - other drivers can't see you braking. These are this guide’s own published ratings.
For labor context, WrenchFair's methodology page cites two published numbers: about half of US independent shops charge $120–$159/hr (PartsTech survey of 752 shops, fall 2024), and the national average posted mechanical rate was $163/hr in June 2026 (NABR LaborRateHero). Multiply either band by a quote's labor hours to judge whether its labor line is in range.
Service bulletins: 422 factory bulletins on file for this vehicle (mostly Electrical System, Equipment, Engine And Engine Cooling) — see the latest ones
On your 2011–2019 Hyundai Sonata (2.4L Theta II GDI) — Front brake pads and rotors:Owner-verified
Front brakes are a conventional floating-caliper setup on both generations (YF 2011-2014 and LF 2015-2019); front rotors are 300 mm (11.81 in.) vented discs, so order pads and rotors by that size. Remove the wheel, unbolt the caliper guide-pin bolts and hang the caliper from the strut or control arm (never the brake hose), then unbolt the caliper bracket from the knuckle to free the rotor — the rotor is retained to the hub by small set screws. Compress the piston with a caliper compressor before fitting the new pads (the pad with the wear indicator goes inboard), reinstall the bracket and caliper, torque all fasteners, reinstall the wheel, and pump the brake pedal several times before driving so the piston reseats.
Do this test first: Check brake light operation
→ Passes: that cause is ruled out — run the next test in the diagnostic path below.
→ Fails: fix what failed — that’s your cause. Clear the code and re-test before buying anything else.
No owner fix reports yet for P0504 on the 2011–2019 Hyundai Sonata — but the community-sourced Front brake pads and rotors note above covers an owner-reported fix. Fixed yours? Report it — you'll help the next owner.
Torque specs
Caliper bracket bolts: 79–108 N·m (58–80 ft-lb) — From an ASE tech answer specific to the 2014 Sonata 2.4L.
Caliper slide/guide-pin bolts: 20–25 N·m (15–18 ft-lb) — From an ASE tech answer specific to the 2014 Sonata 2.4L; clean and re-grease the pins while apart.
Wheel lug nuts: 88–103 N·m (65–76 ft-lb) — 2014 Sonata 2.4L value; a separate ASE master-tech answer gives 88.3-107.9 N.m (65.1-79.6 lb-ft) for the 2012/2013. Torque in a star pattern.
Tips
Clean and lubricate the caliper slide pins with high-temperature brake grease while apart — sticking pins are a known cause of uneven pad wear on the Sonata 2.4L.
Engagement may require a greater pedal stroke right after a pad swap; several pedal applications restore normal stroke (factory service info).
Do not substitute generic rotor sizes: the 2011-2014 Sonata front rotor is 300 mm and the rear is 284 mm — parts listings for the platform are split by these sizes.
Typical difficulty: Moderate — based on 265 code guides for the brake repair area (an area-level estimate, not this exact job).
How notes are verified:Robbie-tested — Robbie did this repair on his own car and confirmed the fix himself. Owner-verified — community repair procedure with 2+ cited sources. Factory-documented — drawn from a factory TSB, recall, or campaign document; a factory procedure, not an owner-tested fix. Community-reported — single-source or otherwise unverified; treat as a lead, not a verdict.
No owner reports yet
Symptoms
brake lights stuck on or not working
cruise control inoperative
EPC light
cannot shift from park
Likely causes
What usually pays the bill on this car, most common first — but work the diagnostic path above cheapest-first. Test order and bill order aren’t the same thing.
Failed brake light switch (very common, cheap part) 11 owner notes link this repair to P0504
Misadjusted switch
Wiring fault
Owner notes linked to P0504: 11 across 1 repair — these are counts of owner-written notes, not odds of fixing your car.
Too many suspects? Answer 4–6 quick questions and this page's published cause list re-orders itself for your situation — plus the cheapest test to run next. Start the elimination wizard →
Before you buy the part — 2 checks
Work these checks before spending money — each one rules a cause in or out, cheapest first.
Watch both switch circuits in scan tool while pressing the pedal
No scan tool yet? The Veepeak OBDCheck (~$32) reads and clears codes from your phone in about two minutes.
Most likely job on your 2011–2019 Hyundai Sonata: Front brake pads and rotors — test first, then buy for this job.
Expensive fork: Brake caliper — if a wheel drags or overheats after fresh pads and rotors.
The price range below is a national planning range for P0504 on this vehicle — not a quote: it spans the common job at the low end to the expensive fork at the high end. 0 owner invoices on this generation — treat these as planning numbers. If a shop quote lands near the top of the range, that’s fork money, not the common job — ask which test failed before authorizing it.
Typical price range
Parts$15 – $40
Labor$50 – $120
The switch is cheap and usually a simple swap. National-average estimate for the most common repair for this code. Actual quotes vary by vehicle, region, and shop - get a local written estimate.
Dealer vs independent shop: these ranges reflect typical independent-shop prices. A dealer will usually quote higher — higher labor rates plus OEM-only parts — so a dealer quote at the top of (or a bit above) this range isn't automatically a rip-off. For a big dealer number, get a second quote from an independent shop before authorizing the work.
What will this cost to fix?A code doesn’t name the repair — run the code-first estimator to see the most likely fixes for P0504 ranked, each with a price range. They handed you a printout at the parts store? Decode it before you buy.
Who's behind this guide?WrenchFair is built by a fellow DIYer, not a repair shop. Code meanings follow the SAE J2012 standard; cause rankings come from real-world repair evidence (service bulletins, owner reports, NHTSA records); prices are typical US ranges, not quotes.Read the full methodology →