A TRIAC is a three-terminal semiconductor device that acts as a bidirectional switch, allowing alternating current (AC) to flow in both directions once triggered by a small gate signal. In a real circuit, it replaces bulky mechanical contactors and allows for phase-angle control—meaning you can chop up the AC sine wave to dim lights or control motor speeds without wasting power as heat like a rheostat would. Beginners frequently confuse the TRIAC with the SCR (Silicon Controlled Rectifier); while both are thyristors, an SCR only conducts in one direction (DC or half-wave AC), whereas a TRIAC handles full-wave AC.
The Definition of a TRIAC and How It Switches AC
To truly grasp the definition of a TRIAC (Triode for Alternating Current), you have to look at its terminals and its internal behavior. A TRIAC has three pins: Main Terminal 1 (MT1), Main Terminal 2 (MT2), and the Gate. Unlike a transistor where the emitter is your universal reference, a TRIAC's Gate is always referenced specifically to MT1. If you swap MT1 and MT2 in your physical wiring but keep your gate drive referenced to the wrong terminal, the device will either fail to trigger or blow up.
Because AC voltage constantly swaps polarity, a TRIAC operates in four distinct quadrants, defined by the polarity of MT2 and the Gate relative to MT1:
- Quadrant I: MT2 positive, Gate positive.
- Quadrant II: MT2 positive, Gate negative.
- Quadrant III: MT2 negative, Gate negative.
- Quadrant IV: MT2 negative, Gate positive.
Once the gate receives sufficient current ($I_{GT}$), the TRIAC "latches" on. It will continue to conduct current between MT1 and MT2 even after the gate signal is removed, acting as a dead short. It only turns off when the main AC current naturally drops below the device's holding current ($I_H$) threshold, which happens exactly at the AC zero-crossing point.
Where You Meet TRIACs in Practice
If you are tearing down appliances or building home automation, you will encounter TRIACs in several specific applications:
- Solid State Relays (SSRs): Those black, hockey-puck-shaped modules used to switch AC heaters or pumps? Inside the plastic casing is a TRIAC paired with an internal zero-crossing optocoupler.
- Leading-Edge Light Dimmers: Traditional incandescent and compatible LED wall dimmers use a TRIAC to "chop" the leading edge of the AC sine wave, delaying turn-on to reduce average power.
- Universal Motor Speed Control: Corded drills, shop vacuums, and routers use TRIAC-based phase control to vary speed. (Note: TRIACs cannot control induction motors or BLDC motors directly without complex VFD circuitry).
- Smart Plugs and IoT Relays: While many smart plugs use mechanical relays for the final switch to avoid voltage drop, high-end or space-constrained smart switches use logic-level TRIACs to silently switch loads.
Worked Numeric Example: Sizing the Gate Resistor
Let's calculate the exact resistor values needed to drive a standard BTA16-600BW TRIAC using a MOC3021 random-phase optocoupler, controlled by a 3.3V ESP32 GPIO pin. We are switching a 120VAC load.
Step 1: Size the Optocoupler LED Resistor ($R_{LED}$)
The MOC3021 internal LED has a forward voltage ($V_f$) of 1.2V and requires a trigger current ($I_{FT}$) of 15mA maximum. To guarantee triggering without overloading the ESP32 GPIO, we will target 15mA.
- $R_{LED} = (V_{GPIO} - V_f) / I_{FT}$
- $R_{LED} = (3.3V - 1.2V) / 0.015A = 140\Omega$
- Action: Use a standard 150Ω resistor.
Step 2: Size the TRIAC Gate Resistor ($R_g$)
The BTA16 requires a maximum gate trigger current ($I_{GT}$) of 50mA in Quadrant III. The peak voltage of a 120VAC line is $120V \times 1.414 = 170V$. We need to ensure the peak current exceeds 50mA but stays below the MOC3021's 1A repetitive surge rating.
- Target peak gate current: 100mA (provides a 2x safety margin over the 50mA requirement).
- $R_g = V_{peak} / I_{target} = 170V / 0.100A = 1700\Omega$
- Action: While 1.7kΩ works mathematically, industry practice uses a 330Ω or 360Ω resistor to force a high initial current spike, ensuring the TRIAC turns on instantly before the AC voltage rises too high (which reduces EMI). At 330Ω, peak current is $170V / 330\Omega = 515mA$, safely within the MOC3021's 1A limit.
- Wattage: Because the resistor only conducts for microseconds before the TRIAC latches and drops the voltage, a standard 1/2W carbon film resistor is sufficient.
Real-World Scenario: The Exploding Router Controller
Theory is clean; the workbench is not. Here is a classic failure mode when working with TRIACs and inductive loads.
The Setup: You are building a DIY speed controller for a 120V, 12A (1440W) universal motor router using a BTA16-600BW and an ESP32. You mount the TRIAC to a 10°C/W finned aluminum heatsink.
The Numbers: 120V RMS, 12A RMS load. The BTA16 is rated for 16A RMS, giving you a 4A margin. The heatsink keeps the junction temperature well below the 125°C limit during continuous operation.
The Outcome: You power it up. The router spins, and as you adjust the PWM phase angle in your ESP32 code, the motor speeds up and slows down perfectly. However, when your code cuts the gate signal to turn the router completely off, the TRIAC violently shatters with a loud pop, taking out the MOC3021 and tripping your workshop's 15A branch breaker.
What Went Wrong: Universal motors are highly inductive. When current through an inductor is interrupted, it generates a massive voltage spike ($V = L \cdot di/dt$). The TRIAC turns off when the AC current crosses zero, but because the load is inductive, the voltage across the TRIAC immediately snaps to the peak AC line voltage. This rapid voltage change ($dv/dt$) exceeded the BTA16’s commutating $dv/dt$ rating (typically around 10 V/µs for standard types). The internal parasitic capacitance coupled this massive spike directly into the gate, self-triggering the TRIAC into a dead short across the AC line.
The Fix: You must add an RC snubber network across MT1 and MT2. Placing a 39Ω resistor in series with a 0.01µF X2-rated capacitor limits the $dv/dt$ and absorbs the inductive kickback, allowing the TRIAC to commutate safely. For further reading on snubber design, refer to the STMicroelectronics AN439 application note on TRIAC usage.
TRIAC vs. SCR vs. MOSFET: Choosing the Right Switch
Choosing the wrong semiconductor for your switching application leads to inefficiency or catastrophic failure. Here is how the TRIAC stacks up against its common alternatives.
| Feature | TRIAC (e.g., BTA16) | SCR / Thyristor (e.g., BT151) | Power MOSFET (e.g., IRF840) |
|---|---|---|---|
| Current Direction | Bidirectional (AC) | Unidirectional (DC / Half-wave) | Unidirectional (DC) |
| Typical Voltage | 400V - 800V AC | 400V - 1200V DC/AC | 50V - 1000V DC |
| Turn-Off Method | AC Zero-crossing only | AC Zero-crossing / Forced commutation | Gate signal removal (Fully controllable) |
| Switching Speed | Slow (Line frequency) | Slow (Line frequency) | Very Fast (kHz to MHz PWM) |
| Best Application | AC Dimming, SSRs, Motor Speed | High-power DC rectification, crowbars | DC motor control, SMPS, high-freq PWM |
The Verdict: Choose a TRIAC when you need to switch or phase-control standard AC mains loads efficiently. Choose a MOSFET if you are converting AC to DC first and need high-frequency PWM control (like in a modern VFD or LED driver). For a deeper breakdown of semiconductor switching physics, the Electronics Tutorials power section provides excellent schematic references.
Frequently Asked Questions
Can I use a TRIAC to switch a DC load?
No. Because a TRIAC relies on the current dropping below its holding threshold to turn off, it will latch on permanently when used with DC power. You will not be able to turn it off without physically breaking the circuit or shorting the main terminals. Use a power MOSFET or BJT for DC switching.
Why do I need a zero-crossing optocoupler (like the MOC3041) instead of a random-phase one (MOC3021)?
If you only need to turn an AC load (like a heater) fully ON or fully OFF, a zero-crossing optocoupler is mandatory. It waits until the AC sine wave crosses 0V before triggering the TRIAC, which drastically reduces inrush currents and electromagnetic interference (EMI). You only use random-phase optocouplers (like the MOC3021) when you need to chop the sine wave for dimming or speed control.
What happens if I wire MT1 and MT2 backward?
Physically, the TRIAC will still conduct AC current because it is bidirectional. However, the Gate terminal is internally referenced to MT1. If you swap MT1 and MT2 but keep your gate drive circuit tied to the original MT1 node, the gate voltage relative to the new MT1 will be completely wrong. The TRIAC will either fail to trigger, trigger erratically, or experience a gate overvoltage that destroys the silicon junction.
Do modern "snubberless" TRIACs still need an RC snubber?
"Snubberless" TRIACs (often designated with a "W" suffix, like the BTA16-600BW) have highly optimized internal geometries that withstand much higher commutating $dv/dt$ (up to 500 V/µs). They can safely switch resistive loads and mildly inductive loads without an external snubber. However, if you are switching highly inductive loads like large universal motors or transformers, the voltage spike can still exceed 500 V/µs, and an external RC snubber remains strictly required.






