A transformer is a passive electromagnetic component that transfers electrical energy between two or more circuits through electromagnetic induction, changing AC voltage and current levels while maintaining the exact same frequency. When you look at a schematic or a teardown and ask, "what's the transformer doing here," it is almost certainly stepping down lethal mains voltage to a safer level, stepping up a low voltage for efficient transmission, or providing galvanic isolation to protect sensitive microcontrollers from line surges.

The One-Sentence Rule: A transformer trades voltage for current (or vice versa) using magnetic fields, but it never creates power and it never changes the AC frequency.

What It Changes in a Real Circuit (and What It Doesn't)

To understand what a transformer actually does to your signal, you have to look at the conservation of energy. Assuming an ideal transformer with zero losses, the power in equals the power out (P_primary = P_secondary). Because Power = Voltage × Current, if you step the voltage down by a factor of 10, the available current steps up by a factor of 10.

Here is exactly what a transformer changes in a real installation:

  • Voltage and Current: Scaled inversely by the turns ratio (N_primary / N_secondary).
  • Impedance: Scaled by the square of the turns ratio. This is critical in audio and RF circuits where you need to match a high-impedance source to a low-impedance load.
  • Galvanic Isolation: It breaks the direct electrical path. A fault on the secondary side won't directly short the primary side, keeping users safe from mains shock.

What it does NOT change: Frequency. A 60Hz input will always yield a 60Hz output. It also does not convert AC to DC.

Common Confusions: Transformers vs. Power Supplies vs. Autotransformers

Makers frequently confuse a raw transformer with a complete "power supply." A transformer only outputs AC. If you need 5V DC for an ESP32, you still need a bridge rectifier, smoothing capacitors, and a voltage regulator after the transformer.

Additionally, do not confuse a standard isolation transformer with an autotransformer (like a Variac). An autotransformer uses a single tapped winding to step voltage up or down. Because the primary and secondary share the same physical wire, an autotransformer provides zero galvanic isolation. Touching the "stepped down" output of an autotransformer can still be lethal if the common winding is tied to the hot mains line.

The Math: A Worked Numeric Example

Let's size a control transformer for a DIY smart home relay board that switches 24VAC contactors. We need to know the exact currents to size our primary fuse and secondary wire gauge.

Scenario: You have a 120VAC primary supply. Your relay board and contactors draw a combined 40VA at 24VAC.

1. Calculate the Turns Ratio:
The turns ratio (a) is the primary voltage divided by the secondary voltage.
a = V_p / V_s = 120V / 24V = 5
For every 5 turns of magnet wire on the primary, there is 1 turn on the secondary.

2. Calculate Secondary Current:
Using the VA (Volt-Ampere) rating, which is the apparent power for AC circuits:
I_s = VA / V_s = 40VA / 24V = 1.66 Amps
You will need at least 22 AWG wire for the secondary side to handle 1.66A safely, though 20 AWG is better for keeping voltage drop low over long runs to the contactors.

3. Calculate Primary Current:
I_p = VA / V_p = 40VA / 120V = 0.33 Amps
A standard 1A slow-blow fuse on the primary side is the correct choice here. Do not use a fast-blow fuse; transformers experience massive inrush currents when first energized.

4. Apply the Sizing Overhead Rule:
Transformers should not be run at 100% of their VA rating continuously. The copper windings will overheat, degrading the enamel insulation and eventually causing a short. Add a 20% to 25% safety margin.
40VA × 1.25 = 50VA
Result: You need to buy a 50VA, 120V-to-24V step-down transformer.

Where You Meet This in Practice

You will encounter transformers in several distinct flavors depending on your project domain:

  • HVAC and Smart Home Controls: The classic "doorbell transformer" is actually a 16VAC or 24VAC control transformer. If you are wiring a smart thermostat (like a Nest or Ecobee) and need a C-wire, you are tapping into the secondary side of this exact transformer.
  • Linear Audio Power Supplies: Audiophiles and amp builders prefer heavy, copper-wound toroidal transformers over cheaper E-I laminated core transformers. Toroids confine their magnetic field tightly, preventing 60Hz hum from inducing noise into high-gain audio preamplifier stages.
  • Ethernet and Telecom (PoE): If you look at the RJ45 jack on a Raspberry Pi or a commercial switch, you will see tiny, epoxy-sealed pulse transformers. These provide the 1500V galvanic isolation required by the IEEE 802.3 standard while allowing high-frequency data signals to pass.
  • Tube Amplifiers: Vacuum tubes operate at high voltages (300V+) but output very low current, resulting in a high output impedance (e.g., 5,000 ohms). An audio output transformer matches this down to the 4-ohm or 8-ohm impedance of a standard speaker cone.

Decision Tree: Picking the Right Transformer for Your Build

Choosing the right part depends entirely on whether you need raw AC, isolated DC, or signal matching. Use this decision-tree-table to terminate your search and pick a concrete part number.

If Your Requirement Is... Then Choose This Topology... Concrete Part Number / Series
Need raw 24VAC for HVAC relays, contactors, or analog control loops (under 100VA). E-I Laminated Core, Chassis Mount Triad Magnetics F-48U (24VAC, 50VA) or Hubbell 40VA
Need low-noise, high-current DC for a Class-A audio amplifier or precision analog bench supply. Toroidal Power Transformer + External Rectifier Hammond 1182 Series (e.g., 1182M117 for 117V to 2x15V)
Need isolated 5V, 12V, or 24V DC directly for an ESP32, Arduino, or Raspberry Pi accessory (under 30W). Encapsulated AC-DC PCB Mount Module Mean Well IRM-10-5 (5V) or IRM-20-24 (24V)
Need to match impedance for a vacuum tube output stage or isolate a microphone signal. Audio Output / Pulse Transformer Hammond 124 Series (Output) or Cinemag (Mic)
Default Recommendation for Makers: If you are building a custom smart home sensor node, a motor controller, or an IoT device and you just need safe, isolated DC from a wall outlet, stop looking at raw transformers. Buy an encapsulated AC-DC module like the Mean Well IRM series. They include the transformer, rectifier, filtering, and short-circuit protection in a single potted block, saving you hours of PCB layout and safety certification headaches.

Sizing Rules: VA, Inrush, and Thermal Limits

When sizing a transformer, the most common mistake is treating the VA (Volt-Ampere) rating as if it were Watts. In a purely resistive load (like a heater), VA equals Watts. But if your secondary load includes motors, relays, or uncorrected switching power supplies, the power factor (PF) drops. A 50VA transformer might only be able to deliver 40W of real power to a load with a 0.8 PF before the windings overheat.

The Inrush Problem:
When you first apply AC power to a transformer, the magnetic core can saturate depending on the exact point in the AC sine wave where the switch closes. This causes a massive inrush current—often 10 to 50 times the nominal primary current—for the first 10 to 20 milliseconds. If you protect a 50VA transformer (nominal primary current ~0.4A) with a 0.5A fast-blow glass fuse, it will blow instantly upon power-up. Always use slow-blow (time-delay) fuses on transformer primaries to ride out the inrush spike.

Thermal Derating:
According to standard manufacturer guidelines from Hammond Manufacturing, standard open-frame transformers are rated for a 40°C ambient temperature. If you are mounting the transformer inside a sealed, unventilated project enclosure where the ambient air reaches 55°C, you must derate the transformer's VA capacity by at least 20% to prevent the Class B or Class F insulation from breaking down.

Frequently Asked Questions

Can I use a transformer to step down DC voltage?
No. Transformers rely on Faraday's Law of Induction, which requires a changing magnetic field to induce a voltage in the secondary coil. DC provides a static magnetic field. If you connect DC to a transformer primary, it will simply act as a low-resistance short circuit, draw massive current, and burn out the winding. To step down DC, you need a buck converter or a linear regulator.

Why are some transformers potted in epoxy while others are open-frame?
Potting (encapsulating in epoxy or silicone) serves three purposes: it eliminates audible 60Hz magnetostriction hum, it protects the delicate magnet wire from moisture and physical damage, and it provides superior dielectric isolation. Open-frame transformers are cheaper and dissipate heat slightly better via convection, but they are noisier and more fragile.

How do I test if a transformer is blown?
Set your multimeter to the lowest Ohms range. Measure the resistance across the primary terminals, then across the secondary terminals. A healthy primary on a small control transformer will read between 10 and 50 ohms. A healthy secondary will read between 0.5 and 5 ohms. If your meter reads "OL" (Open Loop) or infinite resistance on either side, the internal thermal fuse or the magnet wire has snapped, and the transformer is dead. For a deeper dive on testing, consult the transformer theory section on All About Circuits.