The Core BJT Formulas: DC Bias and the Active Region
When you are prototyping a switching circuit or biasing an amplifier on the bench, the Bipolar Junction Transistor (BJT) relies on a strict set of DC relationships. The fundamental BJT formulas governing the active region dictate how a small base current controls a much larger collector current, and how the surrounding resistor network sets the voltage drops. The primary current gain formula is:
IC = hFE · IB
To find the voltage across the transistor itself, we apply Kirchhoff's Voltage Law (KVL) to the collector-emitter loop:
VCE = VCC - IC(RC + RE)
Symbol Definition Table
| Symbol | Parameter | Standard Unit | Realistic Magnitude |
|---|---|---|---|
| IC | Collector Current | Amperes (A) | 1 mA to 100 mA for small-signal |
| IB | Base Current | Amperes (A) | 10 μA to 2 mA |
| hFE | DC Current Gain (β) | Dimensionless | 50 to 300 (varies by part/temp) |
| VCE | Collector-Emitter Voltage | Volts (V) | 0.2V (saturation) to VCC |
| VCC | Supply Voltage | Volts (V) | 3.3V, 5V, 12V, 24V |
| RC | Collector Resistor | Ohms (Ω) | 100 Ω to 10 kΩ |
| RE | Emitter Resistor | Ohms (Ω) | 10 Ω to 1 kΩ |
When These Formulas Apply (And Their Assumptions)
These equations are only valid when the BJT is in the forward-active region. This requires three strict assumptions:
- The base-emitter junction is forward-biased (VBE ≈ 0.65V to 0.7V for silicon).
- The base-collector junction is reverse-biased (VCE > VCE(sat), typically > 0.3V).
- The transistor is operating at a stable temperature (hFE increases roughly 0.5% per °C, which we ignore for basic DC math but must respect in thermal design).
Rearranged Forms and Unit Pitfalls
On the bench, you rarely solve for IC directly; you usually need to size a resistor or verify a gain. Here are the algebraic rearrangements of the core BJT formulas:
- Solving for Base Current: IB = IC / hFE
- Solving for DC Gain: hFE = IC / IB
- Solving for Collector Resistor: RC = (VCC - VCE) / IC - RE (assuming RE is known)
- Solving for Supply Voltage: VCC = VCE + IC(RC + RE)
Solved Problems: Tracking Units from Base to Collector
Let's run two bench scenarios using a standard 2N3904 NPN transistor. We will track every unit to ensure the math holds up.
Problem 1: Finding Collector Current and VCE
Given: VCC = 12V, RC = 1.2 kΩ, RE = 470 Ω, IB = 15 μA, hFE = 120.
Find: IC and VCE.
Step 1: Calculate IC
Convert IB to base units: 15 μA = 0.000015 A.
IC = hFE · IB
IC = 120 · 0.000015 A = 0.0018 A (or 1.8 mA)
Step 2: Calculate IE for the emitter voltage drop
IE = IC + IB
IE = 0.0018 A + 0.000015 A = 0.001815 A (1.815 mA)
Step 3: Calculate Voltage Drops across RC and RE
Convert RC to Ohms: 1.2 kΩ = 1200 Ω.
VRC = IC · RC = 0.0018 A · 1200 Ω = 2.16 V
VRE = IE · RE = 0.001815 A · 470 Ω = 0.853 V
Step 4: Calculate VCE
VCE = VCC - (VRC + VRE)
VCE = 12V - (2.16V + 0.853V) = 12V - 3.013V = 8.987 V
Sanity Check: VCE is well above 0.3V, confirming our assumption that the transistor is in the active region.
Problem 2: Sizing the Base Resistor for a Target Current
Given: We want IC = 50 mA to drive an LED array. VCC = 5V, GPIO logic high (VIN) = 3.3V, VBE = 0.7V, minimum hFE = 100.
Find: The required base resistor (RB).
Step 1: Calculate required IB
IB = IC / hFE
IB = 0.050 A / 100 = 0.0005 A (0.5 mA)
Step 2: Calculate voltage drop across RB
The voltage at the base is clamped to VBE (0.7V).
VRB = VIN - VBE = 3.3V - 0.7V = 2.6V
Step 3: Calculate RB
RB = VRB / IB
RB = 2.6V / 0.0005 A = 5200 Ω (5.2 kΩ)
Bench decision: Use the next standard E12 resistor value down (4.7 kΩ) to guarantee slightly more base current, ensuring the 50 mA target is met even if hFE is slightly lower than 100.
Bench Walkthrough: When the Math Meets Reality (And Fails)
Formulas on a datasheet assume ideal conditions. Here is a real-world scenario where blindly trusting the basic BJT formulas leads to a failed prototype.
The Setup
You are using an ESP32 (3.3V logic) to switch a 12V automotive relay via a 2N3904 NPN transistor. The relay coil has a resistance of 120 Ω, meaning it requires 100 mA of collector current (IC) to pull in. You look at the Onsemi 2N3904 datasheet and see an hFE of 100. You use the rearranged formula IB = IC / hFE to find you need 1 mA of base current. You calculate RB = (3.3V - 0.7V) / 1mA = 2.6 kΩ, and you solder in a 2.7 kΩ resistor.
The Numbers
- Target IC: 100 mA
- Assumed hFE: 100
- Calculated IB: 1 mA
- VCE(sat) expected: < 0.2V
The Outcome
You flash the ESP32 GPIO high. The relay emits a weak, rapid chattering sound instead of a solid click. You probe the collector with your multimeter and read VCE = 1.8V. The 2N3904 is noticeably warm to the touch. The relay is only receiving 10.2V (12V - 1.8V), which is below its pull-in threshold.
What Went Wrong: The hFE Droop
The basic BJT formulas failed because the assumption of a constant hFE broke down. The datasheet lists hFE = 100 at IC = 10 mA. However, if you read further down the electrical characteristics table, you will see that at IC = 100 mA, the hFE of a 2N3904 drops significantly, often down to 40 or 50. Because the actual gain was ~50, your 1 mA base current only yielded 50 mA of collector current. The transistor never reached hard saturation; it got stuck in the linear (active) region, dropping 1.8V across the collector-emitter junction and dissipating 180 mW of heat (P = VCE · IC).
The Fix: When using a BJT as a switch, never rely on the linear active region formula. You must force saturation by using an 'overdrive factor' (typically 10). Treat the forced β as 10, regardless of the datasheet's hFE.
Recalculating: IB = 100 mA / 10 = 10 mA.
RB = (3.3V - 0.7V) / 10mA = 260 Ω.
Swapping the 2.7 kΩ resistor for a 270 Ω resistor floods the base with current, driving VCE down to 0.2V, delivering the full 12V to the relay coil.
Summary: Rules of Thumb for the Workbench
The core BJT formulas are excellent for biasing analog amplifier stages where the transistor intentionally operates in the linear active region. For those circuits, track your units meticulously, respect the VBE drop, and always verify that your calculated VCE leaves at least 1V of headroom above saturation to prevent signal clipping. However, when you transition from analog amplification to digital switching, abandon the hFE formula. Assume the transistor is a current-controlled valve that needs to be slammed fully open. Use a forced beta of 10, verify your GPIO pin can actually source that much base current without browning out, and always measure VCE on the bench to confirm you achieved true saturation.






