What electrical work can be done DIY?
DIY electrical work that most jurisdictions allow: replacing switches, receptacles, and light fixtures like for like, swapping a broken breaker of the same rating, and installing low-voltage systems such as doorbells and landscape lighting.
With a homeowner permit, many states extend that to real wiring: new circuits, a subpanel, a 240V receptacle, in a home you own and occupy, inspected when done.
The common no-go zone: service equipment, meter bases, anything ahead of the main breaker, and all work on rentals or homes for sale. Some cities allow homeowners almost nothing, so the local building department sets your actual list.
Skill honesty matters more than legality; the panel does not grade on effort.
For the jobs you do take on, the free electrical calculator gives code-cited numbers instead of forum guesses.
WireGaugeCalc runs every NEC calculation in one free app, with the code article cited on each result.
Open the calculator