Building a high voltage transformer comes down to winding more turns of wire on the secondary coil than on the primary, then managing the insulation challenges that come with thousands of volts. The core principle is simple, but the execution requires careful attention to insulation, spacing, and winding technique to prevent arcing and failure. Here’s how to approach the build from design through testing.
The Turns Ratio Sets Your Voltage
A transformer’s output voltage is determined by the ratio of turns on its two coils. The formula is straightforward: divide the number of secondary turns by the number of primary turns, and multiply by your input voltage. If you wind 100 turns on the primary and 10,000 on the secondary, you have a 1:100 ratio. Feed in 120 volts AC, and you get 12,000 volts out (in theory, before losses).
To design your transformer, start with your target output voltage and work backward. Decide on your input voltage (typically mains voltage, 120V or 230V depending on your country), then calculate the turns ratio you need. A 120V primary aiming for 6,000V output needs a 1:50 ratio. If your primary has 200 turns, your secondary needs 10,000 turns.
Wire gauge matters on both sides. The primary carries more current, so it needs thicker wire. The secondary carries very little current at high voltage, so it can be much thinner, often 30 AWG or finer. Thinner secondary wire also makes it physically possible to fit thousands of turns onto the core. Use enameled magnet wire for both windings, as the enamel coating provides basic turn-to-turn insulation.
Choosing and Preparing the Core
Most DIY high voltage transformers use a ferrite core or a laminated iron core. Ferrite cores work well at higher frequencies (tens of kilohertz), making them common in flyback-style designs. Laminated iron E-I cores handle mains frequency (50 or 60 Hz) effectively and are widely available from salvaged transformers or electronics suppliers.
The core’s cross-sectional area determines how much power the transformer can handle. A larger cross section supports more flux before the core saturates, which is the point where adding more current to the primary no longer increases the magnetic field. For most hobbyist high voltage projects producing small currents (milliamps), a core with a cross section of roughly 5 to 10 square centimeters is a reasonable starting point.
If you’re using an E-I core, assemble the laminations in alternating directions to minimize air gaps. For a ferrite core, make sure the mating surfaces are clean and flat. Any air gap in the core reduces coupling between windings and lowers efficiency.
Winding the Secondary in Sections
This is where high voltage transformers diverge sharply from ordinary ones. You cannot simply pile thousands of turns in a single mass. The voltage difference between the first layer and the last layer would be enormous, and the wire’s thin enamel insulation cannot handle it. The result is arcing between layers and immediate failure.
The solution is sectional winding, sometimes called “pie” winding. You divide the secondary into multiple isolated sections, each containing a portion of the total turns. A 10,000-turn secondary might be split into 20 sections of 500 turns each. Each section only sees a fraction of the total voltage, keeping the stress between adjacent layers manageable. Research on transformer winding architectures confirms that this approach minimizes voltage differences between adjacent turns and reduces the capacitance that builds up between layers, both of which improve reliability at high voltages.
Wind each section neatly in layers, placing a strip of insulating tape or thin polyester film between every layer within a section. Between sections, use thicker insulation: several layers of electrical tape, Kapton film, or sheets of polyester. The higher the total voltage, the more insulation you need between sections.
Bank Winding for Lower Capacitance
Within each section, you can use a technique called bank winding. Instead of winding complete layers left to right, you wind small groups of turns that double back on themselves. This keeps adjacent turns close in voltage, further reducing the stored energy between them. It takes patience, but it produces a secondary coil with lower self-capacitance and better high-frequency performance.
Insulation Spacing and Creepage
Air breaks down and allows a spark at roughly 3 kV per millimeter under normal room conditions. That means a 15,000-volt transformer needs at least 5 mm of air clearance between any two points at full voltage difference, and in practice you want significantly more margin than that. Humidity, dust, and sharp edges on wire ends all reduce the voltage air can withstand.
Two distances matter for safety. Clearance is the shortest path through air between two conductive parts. Creepage is the shortest path along a surface. Electricity can track along dirty or damp surfaces at much lower voltages than it takes to arc through clean air, so creepage distances need to be larger than clearance distances. At 1,000 volts RMS, standard safety tables call for creepage distances of 5 to 10 mm depending on how clean the environment is. Scale up proportionally for higher voltages, and use surfaces that resist tracking, like clean ceramic, PTFE, or high-quality plastics.
Pay special attention to where your secondary leads exit the winding. The point where the high voltage wire leaves the coil and connects to a terminal is one of the most failure-prone spots. Route the lead away from the core and primary winding with generous spacing, and sleeve it in silicone tubing or another high voltage insulator.
Potting to Prevent Internal Arcing
For transformers operating above a few kilovolts, potting the finished windings in epoxy resin dramatically improves reliability. Resin fills the tiny air gaps between turns and layers where corona discharge would otherwise erode the insulation over time. It also locks the windings mechanically, preventing vibration from loosening turns.
Two-part epoxy potting compounds designed for electrical applications are the standard choice. Look for formulations rated for high voltage insulation. Some cure at room temperature, which simplifies the process considerably.
The critical step in potting is removing air bubbles from the resin before and during the pour. Trapped bubbles create weak points where arcing can start internally. The professional method uses a vacuum chamber: mix your resin and hardener, then degas the mixture under vacuum (around 0.5 mm of mercury) for at least 15 minutes until bubbling stops. Pour the degassed resin over the windings, ideally while still under vacuum so it flows into every gap. If you don’t have a vacuum setup, pour slowly, use a low-viscosity resin, and gently warm both the resin and the coil to around 50°C to help air escape naturally. Warming reduces the resin’s viscosity and gives bubbles more time to rise before it cures.
Be cautious with temperature. Heating the resin shortens its working time. Follow the manufacturer’s guidance for your specific compound, and do a small test batch first to learn how quickly it thickens.
Winding the Primary
The primary winding is far simpler. It has fewer turns of heavier wire and operates at a low, safe voltage. Wind it in a single neat layer if possible, or two layers with a strip of insulation between them. Place the primary on the opposite side of the core from the secondary, or if they share the same bobbin, wind the primary first (closest to the core) with a thick insulation barrier separating it from the secondary.
Keeping the primary physically separated from the secondary is one of the most important safety measures. If insulation fails between the two windings, mains voltage and high voltage can become connected, creating an extreme hazard. Use multiple layers of insulation and maintain generous spacing.
Testing Your Transformer
Never test a high voltage transformer by holding the output leads. Even low-current high voltage sources can deliver a painful or dangerous shock. Use insulated leads, keep one hand behind your back (an old electrician’s habit that prevents current from crossing your chest), and work with a grounded enclosure around the transformer.
Start by testing the primary winding alone. Connect it to a variable AC source (a variac) and slowly increase the voltage while monitoring current draw. If the current rises sharply before you reach full voltage, the core is saturating, which means you need more primary turns or a larger core.
To measure the output voltage, you can use a spark gap: two smooth, rounded electrodes with an adjustable distance between them. Air at normal atmospheric pressure and room temperature breaks down at predictable voltages. A 0.5 mm gap sparks at roughly 2,800 volts. A gap of about 1.8 mm breaks down at around 5,300 volts. By slowly increasing the gap until sparking stops, you can estimate your output voltage. A high voltage probe connected to a multimeter gives more precise readings if you have one.
Listen and watch for signs of trouble during testing. Buzzing or hissing from the windings suggests loose turns or corona discharge. A sharp ozone smell means arcing is happening somewhere. Visible sparks along the surface of the coil mean your insulation or creepage distances are insufficient. Shut down and address these issues before running the transformer for extended periods, as corona slowly destroys insulation and leads to eventual failure.
Common Pitfalls
- Insufficient layer insulation: A single layer of tape between high voltage layers is rarely enough. Use multiple layers, and increase thickness as you move toward the high voltage end of the secondary.
- Sharp wire ends: Cut wire ends create points where electric fields concentrate, promoting arcing. Fold or smooth all wire terminations, and cover them with insulation.
- Ignoring creepage paths: A winding might have 10 mm of clearance through air but only 3 mm of creepage along a plastic bobbin surface. High voltage will find the easiest path, and surface tracking often wins.
- No load protection: Running a high voltage transformer with no load (nothing connected to the secondary) can cause voltage spikes well above the designed output, potentially breaking down insulation. Always test with an appropriate load or a bleeder resistor across the output.

