Toolvito

Works on this device

Transistor Resistor Calculator

Work out the resistors around a bipolar transistor that is used as a switch: the base resistor that turns it fully on, and the collector resistor that sets the current. You can also check a circuit you already have.

Enter your values

The resistor between a control pin and the base that turns the transistor fully on.

Your values

Measured from the emitter. For an NPN transistor with its emitter at ground this is the high level of the control signal, such as 5 V or 3.3 V.

Data sheets give VCE(sat) at a set ratio of collector current to base current, often 10 or 20 (examples). Use that ratio. It must be well below the lowest hFE of the part.

From the data sheet: VBE(sat) at your collector current.

More options

A pull-down resistor that keeps the transistor off while the control pin floats. It takes VBE ÷ its resistance away from the base.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Enter the control voltage that drives the base resistor, for example 5 V or 3.3 V from a microcontroller pin.
  2. Enter the collector current that the transistor must switch. You can give it as a current, or as a supply voltage and a load resistance.
  3. From the data sheet of your transistor, type the forced gain and the base-emitter voltage. These fields start empty, because the tool has no transistor data. Try an example fills in sample values.
  4. Choose Calculate. The result shows the exact base resistor, the base current and the current that the control pin must give.
  5. Pick a standard resistor value by hand. With a load resistance typed, Check this circuit with a standard value carries the resistor to the checking calculation.

The circuit

The load is between the supply and the collector of an NPN transistor, and the emitter is at ground. The base resistor goes from the control pin to the base. A resistor from the base to the emitter is optional: it keeps the transistor off while the control pin floats.

For a PNP transistor the emitter is at the positive supply and the load is between the collector and ground. Type every voltage as a positive number, measured from the positive supply downward.

The formulas

  • Base current = collector current ÷ forced gain. The forced gain is the ratio of collector current to base current that you choose, well below the lowest gain (hFE) of the part, so that the transistor is saturated.
  • Base resistor = (control voltage − VBE) ÷ (base current + VBE ÷ resistor from base to emitter).
  • Collector current with a load resistance = (supply voltage − VCE(sat)) ÷ load resistance.
  • Collector resistor = (supply voltage − VCE(sat)) ÷ collector current.
  • Check: the transistor is saturated when hFE × base current is more than (supply voltage − VCE(sat)) ÷ load resistance.

Worked example

The part values in this example and in the Try an example button are sample values. Use the values from your own data sheet.

A 5 V pin must switch 100 mA. With a forced gain of 10 the base current is 100 ÷ 10 = 10 mA. With a VBE of 0.8 V the base resistor is (5 − 0.8) ÷ 0.010 = 420 Ω. The next standard value below 420 Ω is the safe side.

Check with 390 Ω, a 12 V supply, a load of 120 Ω, a lowest hFE of 100 and a VCE(sat) of 0.2 V: the base current is 4.2 ÷ 390 = 10.77 mA. Saturation needs only 11.8 ÷ 120 ÷ 100 = 0.983 mA, so the base gets 1,095% of that and the transistor is fully on. The collector current is 98.33 mA.

A collector resistor for 100 mA from 12 V with a VCE(sat) of 0.2 V is 11.8 ÷ 0.1 = 118 Ω, and it turns 1.18 W into heat.

Limits you should know

  • The result is arithmetic on the values you typed. It is not professional engineering advice. Check a real design against the data sheet of your transistor.
  • The tool holds no transistor data. VBE, VCE(sat), the forced gain and hFE are your inputs, and the maximum ratings in the data sheet decide. A part that gets too hot fails or can start a fire.
  • The transistor model is simple: a constant VBE, a constant gain and a constant VCE(sat). The gain of real transistors of one type differs widely from part to part and changes with current and temperature.
  • The control pin must be able to give the base current. The limit is in the data sheet of the chip that drives the base.
  • A relay coil, a motor or another load with a coil needs a diode across it. The tool does not size that diode.
  • Switching speed, Darlington pairs and MOSFETs are not covered. For an LED and its resistor, use the Led Resistor Calculator. For an amplifier bias point, use the Transistor Bias Calculator.
  • The tool gives exact resistor values and has no table of standard values.

Related tools