mypros+
Error code reference

A.O. Smith Water Heater Error Code 510

Abnormal main gas valve

Avg. service call
$285
National average. Trip fee plus diagnostic plus labor. Before parts.
MyPros+ 3-day pass
$9.95
Same diagnostic steps, on your phone. Start now.
You keep in your pocket
~$275
Even before you buy the part.
Skip the service call. Fix it yourself.
Full procedure unlocks instantly.
Get Started

What the 510 error code actually means

Your water heater has detected a problem with the electrical circuit that controls the main gas valve, which is the component that turns the burner on and off. This is a potentially serious issue because the valve may not be shutting off correctly. If you can still see flames through the small sight glass on the unit after turning off hot water, shut off the gas and power immediately and call a professional.

Diagnostic procedure

The full 510 procedure

Step 1 is visible so you can confirm you are on the right page. The remaining steps, the ones that tell you whether to actually replace a part, unlock with any pass.

MyPros+ · DiagnosticsStep 1 preview
1
First diagnostic step
If hot water is shut off but flames are still visible through the sight glass, immediately shut off gas and power and contact Technical Service Department.
More steps, wiring diagram references, and verified part numbers
Includes expected resistance and voltage values, connector pinouts, and supersession notes for replacement parts.
Unlock 510 procedure $9.95

Or subscribe: $29/month for unlimited access to all codes plus Max AI diagnostics.

Most common causes of 510

Ranked by how often they cause this code
  1. 1Faulty main gas valve solenoid
  2. 2Damaged or corroded wiring harness
  3. 3Control board driving circuit failure
  4. 4Short circuit in valve wiring

Most DIYers save hundreds by diagnosing before ordering parts.

Get Started

$29/month · Cancel anytime · Or $9.95 3-day pass

Questions people ask about 510

What does 510 mean on a A.O. Smith water_heater?
Code 510 indicates a fault in the driving circuit for the main gas valve. This means the control board has detected that the electrical circuit responsible for opening and closing the gas valve is not operating correctly. It can be caused by a failed valve solenoid, damaged wiring, or a faulty control board output stage. Because this fault can potentially result in the burner continuing to fire when it should be off, it requires immediate attention from a qualified technician.
Can I reset the water heater to clear error code 510?
A simple reset is unlikely to permanently resolve code 510 because it points to a hardware fault in the gas valve driving circuit. Even if the unit restarts after a reset, the underlying problem with the solenoid, wiring, or control board remains. Given the potential for an unsafe valve condition associated with this code, the root cause must be diagnosed and repaired before returning the unit to service.
How much does it cost to repair error code 510 on an A.O. Smith water heater?
Repair costs depend on the root cause identified during diagnosis. A wiring repair or connector replacement is typically the least expensive outcome, often in the range of $75 to $200 including labor. Replacing the main gas valve generally costs between $150 and $400 depending on the model and parts availability. If the control board is the source of the fault, board replacement can range from $200 to $500 or more. A service call fee will usually apply in addition to parts and labor costs.
Is error code 510 on an A.O. Smith water heater dangerous?
Yes, this error carries a significant safety risk. If the driving circuit fault causes the gas valve to remain open, the burner can continue burning even after no hot water is being called for. If you observe flames through the sight glass when the unit should be off, shut off the gas supply and electrical power to the heater immediately and do not restart it until a qualified technician has inspected it.
Can I fix error code 510 myself?
Basic checks such as inspecting the wiring harness for visible damage or loose connectors can be performed by a knowledgeable DIYer. However, because this fault involves the gas valve and carries a risk of uncontrolled burner operation, full diagnosis and any component replacement should be handled by a licensed plumber or certified appliance technician. A.O. Smith specifically directs that if flames are visible when they should not be, you must contact their Technical Service Department rather than attempting self-repair.

78,000+ service manuals · 160,000+ error codes · 55+ brands

Get Started

$29/month · Cancel anytime · Or $9.95 3-day pass