Current Mirror Calculator
Design a BJT or MOSFET current mirror. Solves reference resistor, output impedance, and Wilson/cascode improvements.
How to Use
- Choose a BJT or MOSFET mirror.
- Enter the output current you want and the supply voltage.
- Enter β for a BJT, and the drop across the diode-connected reference transistor: about 0.65 to 0.7 V for a BJT, more for a MOSFET.
- Read R_ref, the reference current it must carry, the inherent mirror error and the power in the reference branch.
Worked Example
A BJT current mirror must deliver 1 mA from a 5 V supply, with β = 200 and 0.7 V across the reference transistor. Both base currents come out of the reference, so it must carry 1 mA × (1 + 2/200) = 1.010 mA. R_ref = (5 − 0.7) ÷ 1.010 mA = 4.26 kΩ (4.3 kΩ is the nearest E24 value), and the reference branch uses 4.3 V × 1.01 mA = 4.34 mW.
With a low β of 50 the base currents take 4%, so the reference needs 1.04 mA and R_ref = 4.13 kΩ. A Wilson mirror would cut that error to about 2/β², 0.08%.
The common mistake: assuming the output can go all the way to the supply. The output transistor needs a few tenths of a volt across it to stay out of saturation; if the load leaves less than that, the mirror stops regulating.
Show Work
Formulas
History of the Current Mirror
Current mirrors became a basic building block of bipolar integrated circuits in the 1960s. On a chip, matched transistors are cheap while large resistors are costly and imprecise, so designers such as Bob Widlar, whose op-amps at Fairchild and later National Semiconductor shaped the field, biased whole circuits from mirrored currents. The classic 741 op-amp uses a mirror as the active load of its input stage, and CMOS mirrors do the same jobs in nearly every analog IC today.
About This Calculator
Pick BJT (two matched NPN/PNP) or MOSFET mirror. Enter target output current, supply voltage, β (for BJT), and Vref (diode-connected transistor drop — typically 0.7 V BJT, 1-2 V MOSFET). The tool computes the reference current the mirror needs (I_out × (1 + 2/β) for a BJT), R_ref = (Vcc − V_ref)/I_ref, the power in the reference branch and the inherent matching error (≈ 2/β for a simple BJT mirror).
For tighter matching, use Wilson (error ≈ 2/β²) or cascode mirrors. For MOSFET mirrors, match transistor area ratio (W/L) to set output-to-reference current ratio. Everything runs client-side.
Frequently Asked Questions
What is a current mirror?
Two matched transistors sharing the same base-emitter (or gate-source) voltage. A resistor sets the current in the first, diode-connected transistor, and the second copies it into its load, almost independently of the load's voltage.
Why is a BJT mirror's output a little low?
Both transistors' base currents come out of the reference current, so I_out = I_ref ÷ (1 + 2/β). With β = 200 that is 1% low; this calculator sizes R_ref for the slightly larger reference current to compensate.
How accurate are current mirrors?
The simple BJT mirror's 2/β error varies with β from part to part, and its output changes with collector voltage (Early effect). A Wilson mirror cuts the base-current error to about 2/β², and a cascode raises the output resistance. Discrete transistors match far worse than transistors on one chip, so use matched pairs.
How do I get a different output current?
In ICs, scale the transistor sizes: a MOSFET with twice the W/L carries twice the current. With discrete BJTs, add emitter resistors and set their ratio, which also improves matching.
What is the compliance voltage?
The lowest voltage across the output transistor at which it still mirrors properly: about 0.2 to 0.3 V for a BJT before it saturates, and the overdrive voltage for a MOSFET. Below that the output current falls away.
How do I use the Current Mirror Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Differential Pair Tail Current
Op-amps and comparators set their input-stage current with a mirror from one reference, typically microamps to a milliamp.
Active Load
Replacing a collector resistor with a mirror gives a very high load resistance in a small space, which is how IC amplifier stages reach gains in the thousands.
LED Drivers
A mirror can copy one reference current to several LED strings so they share it evenly, given matched transistors.
Biasing a Whole Chip
One accurate reference, from a bandgap, is copied by mirrors to every block that needs a bias current.
Last updated: