A transformer is a passive electromagnetic device that transfers AC electrical energy between two or more circuits via magnetic induction, changing voltage and current levels while preserving frequency and providing galvanic isolation. If you are building a linear power supply, wiring an HVAC control board, or designing a relay-driven automation panel, you need to understand how to size and select the right magnetic core for the job. This guide strips away the textbook theory and focuses on the bench-tested math, real-world failure modes, and exact part numbers you need to make a decision.
The One-Sentence Definition and What It Actually Changes
At its core, a transformer changes the voltage and current ratio of an alternating current (AC) circuit while keeping the total apparent power (Volt-Amps, or VA) roughly constant, minus minor thermal and core losses. Think of it like a mechanical gearbox: it trades torque for speed, but the total horsepower going into the shaft equals the horsepower coming out. If you step the voltage down by a factor of 5, the available current steps up by a factor of 5.
What People Commonly Confuse It With
The most frequent mistake on the bench is confusing a transformer with a power supply. A transformer only handles AC-to-AC conversion and isolation. It does not rectify, filter, or regulate. If you need 24V DC to run an ESP32 or a relay coil, a transformer alone will not work; you need a transformer followed by a bridge rectifier and a smoothing capacitor (a linear supply), or you need a Switch-Mode Power Supply (SMPS) module.
Additionally, do not confuse a standard isolation transformer with an autotransformer (like a Variac). Autotransformers share a single winding between primary and secondary. They can change voltage, but they offer zero galvanic isolation, meaning a fault on the secondary side can put full mains voltage on your chassis.
The Math That Matters: A Worked 50VA Control Circuit Example
Transformers are rated in Volt-Amps (VA), not Watts. Because AC circuits can have reactive loads (like relay coils or contactors), the apparent power (VA) dictates the physical size and thermal limits of the copper windings. Let us run the numbers on a standard 50VA control transformer stepping 120VAC down to 24VAC.
Calculating Secondary and Primary Currents
To find the maximum continuous current your secondary winding can deliver, divide the VA rating by the secondary voltage:
- Secondary Max Current: 50VA / 24V = 2.08 Amps
To find what the transformer will pull from your mains panel under that full load, divide the VA by the primary voltage:
- Primary Max Current: 50VA / 120V = 0.416 Amps
Where You Meet Transformers in Practice
You will encounter heavy iron-core transformers in specific, high-reliability, or high-isolation scenarios where switching power supplies fall short:
- HVAC and Industrial Control Panels: 24VAC control circuits use transformers to power thermostat logic, contactor coils, and damper motors. They are rugged, tolerate voltage spikes from inductive kickback, and rarely fail.
- Tube Guitar Amplifiers: Output transformers match the high-impedance, high-voltage plates of vacuum tubes to the low-impedance voice coil of a speaker. Audio quality here depends heavily on the core material and winding geometry.
- Doorbell Circuits: The small, hum-prone boxes strapped to junction boxes in basements are typically 16VAC, 10VA to 30VA step-down transformers.
- Isolation Bench Testing: When troubleshooting live mains circuits, a 1:1 isolation transformer breaks the ground reference, preventing a short circuit if you accidentally touch a live probe to an earthed oscilloscope ground clip.
Conversely, you will not find traditional iron-core transformers in modern phone chargers, PC power supplies, or LED drivers. Those use high-frequency SMPS topologies that shrink the magnetic components down to the size of a thumbnail.
Decision Tree: Sizing and Picking Your Transformer
Use this decision path to select the exact component class and part number for your build.
| If your project requires... | Then you need this class... | Concrete Pick / Part Number |
|---|---|---|
| 24VAC for relays, HVAC, or Arduino/ESP32 AC-DC modules (under 40VA) | Class 2 Control Transformer (DIN or Panel mount, dual primary) | Functional Devices TR40VA001 (40VA, 120/240V to 24V, ~$28) |
| 120V to 12V/24V for high-wattage halogen or LED landscape lighting | Magnetic Low Voltage (MLV) Toroidal Transformer | Hatch HMT-150-12 (150W, 12VAC output, ~$65) |
| Safe, isolated 120VAC bench power for troubleshooting live boards | 1:1 Isolation Transformer (Benchtop, fused) | B&K Precision 1651A (120V, 100VA, isolated output, ~$220) |
| Dual-polarity DC rails (e.g., +/- 15V) for op-amp audio circuits | Chassis Mount PCB Transformer with dual secondaries | Hammond 165 Series (e.g., 165E) (various VA, center-tapped, ~$18) |
The Default Recommendation: If you are building a DIY home automation panel, a sprinkler controller, or an ESP32-based relay board that needs 24VAC control power, stop searching and buy the Functional Devices TR40VA001. It features a dual primary (120/240V), built-in secondary fuse holder, and a footprint that mounts easily to standard DIN rail or backplanes. It is the industry standard for a reason.
Wiring Realities: Inrush Current and Fusing
The most common reason a DIY transformer build trips the main panel breaker the moment you flip the switch is magnetizing inrush current. When you first apply AC voltage to a transformer primary, the magnetic core is unmagnetized. Depending on the exact point in the AC sine wave where the switch closes, the core can temporarily saturate, drawing 10 to 15 times the nominal primary current for the first few cycles.
For our 50VA example, the steady-state primary draw is 0.416A. But the inrush spike can briefly hit 5 Amps. If you protect the primary side with a standard fast-acting 1A glass fuse, it will blow instantly upon power-up.
The Fusing Fix
Always use time-delay (slow-blow) fuses on the primary side of a transformer. According to NEC Article 450 guidelines for transformer overcurrent protection, primary fusing for control transformers under 600V is typically sized at 125% to 167% of the rated primary current, utilizing a slow-blow characteristic to absorb the inrush spike without nuisance tripping.
Furthermore, always fuse the secondary side as well. A short circuit on a 24V relay coil will reflect back to the primary, but the primary fuse might be too large to clear a minor secondary overload before the transformer windings overheat and melt the insulation. A secondary fuse sized at 125% of the secondary full-load current (e.g., a 2.5A slow-blow fuse for our 2.08A secondary) protects your low-voltage wiring.
Frequently Asked Questions
Can I wire a 120V transformer in reverse to step 24V up to 120V?
Electrically, yes. A transformer is bidirectional. However, safety and code compliance dictate otherwise. Transformers are designed with specific insulation clearances, tap configurations, and fusing locations based on which side is the high-voltage primary. Wiring a step-down transformer in reverse means your low-voltage secondary wiring is now carrying mains voltage, which violates insulation ratings and creates a severe shock hazard. Never do this in a permanent installation.
Why does my transformer hum or vibrate?
This is called magnetostriction. The alternating magnetic field causes the laminated steel core sheets to physically expand and contract at twice the line frequency (120Hz in North America). Cheap transformers with loose laminations or poor core construction will vibrate audibly. If the hum is new and exceptionally loud, check your load; drawing excessive current or applying a DC offset to the AC primary will push the core into saturation, dramatically increasing vibration and heat.
Do I need to ground the transformer core?
Yes. The metal frame, mounting bracket, and core laminations must be bonded to the equipment grounding conductor. If an internal winding insulation fails and shorts to the core, the grounding path ensures the breaker trips immediately rather than leaving the metal chassis energized at 120V.






