The risks of withholding rent over electrical
California law may allow tenants to respond to serious, unrepaired habitability problems — including dangerous electrical hazards — but rent withholding has strict rules and real risks, so it should never be done casually.
To even consider it, the problem generally must be serious enough to affect health or safety, the landlord must have had proper written notice and a reasonable chance to fix it, and the problem must not have been caused by you. Even then, withholding rent the wrong way can expose you to eviction.
Other options may fit better. The "repair and deduct" remedy can let a tenant, in limited situations, pay for a qualifying repair and subtract the cost from rent, subject to legal limits. Reporting the hazard to a local code or building inspector is another path.
Because the exact rules are detailed and the stakes are high, this is a situation where getting advice first really matters. A free, confidential review can look at your specific facts and help you choose the safest option.
This is general information about California tenant rights, not legal advice. Every situation is different.