Main Content

Ideal Transformer

Ideal transformer in electrical systems


Electrical Elements

  • Ideal Transformer block


The Ideal Transformer block models an ideal power-conserving transformer, described with the following equations:




V1Primary voltage
V2Secondary voltage
I1Current flowing into the primary + terminal
I2Current flowing out of the secondary + terminal
NWinding ratio

This block can be used to represent either an AC transformer or a solid-state DC to DC converter. To model a transformer with inductance and mutual inductance terms, use the Mutual Inductor block.

The two electrical networks connected to the primary and secondary windings must each have their own Electrical Reference block.


To set the priority and initial target values for the block variables prior to simulation, use the Variables tab in the block dialog box (or the Variables section in the block Property Inspector). For more information, see Set Priority and Initial Target for Block Variables.


Winding ratio

Winding ratio of the transformer, or ratio of primary coil turns to secondary coil turns. The default value is 1.


The block has four electrical conserving ports. Polarity is indicated by the + and – signs. Ports labeled 1+ and 1– are connected to the primary winding. Ports labeled 2+ and 2– are connected to the secondary winding.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2007a