Comparison · Intermediate · 3 min read
Solid-State Relay vs Mechanical Relay
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A mechanical relay closes metal contacts with a coil, so it switches AC or DC with almost no voltage drop or leakage, but it clicks and wears out. A solid-state relay (SSR) switches with a triac or MOSFET behind an optocoupler: it is silent, fast and lasts far longer, but it drops about 1 to 1.6 V, gets hot and leaks a few mA when off. AC SSRs cannot switch DC.
Key specs at a glance
- Mechanical relay
- AC or DC, about 100,000 operations at rated load, needs a driver
- AC SSR
- Triac output, usually zero-cross, 24 to 380 VAC; cannot switch DC
- DC SSR
- MOSFET output, for DC loads only
- SSR input
- Typically 3 to 32 VDC, a few mA; Arduino pins can drive it
- SSR drop and heat
- About 1 to 1.6 V; roughly 1 to 1.5 W of heat per amp
- SSR off-state leakage
- A few mA, enough to make LED bulbs glow
This part is often wired to 230 V mains. Do all wiring with the plug pulled out, keep mains wires inside a closed box with strain relief, add a fuse, and never touch the board while it is plugged in. If you are new to mains wiring, have an electrician check it before you switch on.
Side by side
| Mechanical relay | Solid-state relay | |
|---|---|---|
| Switching | Metal contacts | Triac (AC) or MOSFET (DC) |
| Noise | Clicks | Silent |
| Life | Limited by contact wear | Very long if kept cool |
| Voltage drop | Near zero | About 1 to 1.6 V |
| Heat sink | Not needed | Needed above a few amps |
| Leakage when off | None | A few mA |
| Fast or frequent switching | Poor | Good (zero-cross AC suits about 1 s cycles) |
| Fails | Usually open or welded closed | Often short (stays on) |
- Switching
- Mechanical relay:
- Metal contacts
- Solid-state relay:
- Triac (AC) or MOSFET (DC)
- Noise
- Mechanical relay:
- Clicks
- Solid-state relay:
- Silent
- Life
- Mechanical relay:
- Limited by contact wear
- Solid-state relay:
- Very long if kept cool
- Voltage drop
- Mechanical relay:
- Near zero
- Solid-state relay:
- About 1 to 1.6 V
- Heat sink
- Mechanical relay:
- Not needed
- Solid-state relay:
- Needed above a few amps
- Leakage when off
- Mechanical relay:
- None
- Solid-state relay:
- A few mA
- Fast or frequent switching
- Mechanical relay:
- Poor
- Solid-state relay:
- Good (zero-cross AC suits about 1 s cycles)
- Fails
- Mechanical relay:
- Usually open or welded closed
- Solid-state relay:
- Often short (stays on)
Which to use
switched on and off often: an AC SSR with a heatsink, controlled with slow PWM (a cycle of about 1 to 2 seconds).
a mechanical relay module is cheaper and has no leakage.
a MOSFET or a DC SSR, never an AC SSR.
a mechanical relay, because SSR leakage makes them flicker or glow.
The low-cost blue 2 A SSR modules (Omron G3MB-202P style) are AC only and need a load that draws enough current to switch off properly.
Ratings, heat and safety
Many unbranded '25 A' or '40 A' SSRs cannot carry that current continuously. Derate to about half the label, fit a heatsink with thermal paste, and keep the case below about 60 °C. Add a fuse on the load side. An SSR that fails usually fails shorted, so for safety-critical heaters add a thermal cut-off or a mechanical relay in series. Mains wiring must be enclosed, earthed where required, and done by someone competent.
Try it: Power dissipation calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using an AC SSR to switch a DC load.
- Running a high-current SSR without a heatsink.
- Trusting the current on a cheap SSR label.
- Switching small LED bulbs with an SSR and seeing them glow when off.
- Fast PWM on a zero-cross SSR.
Frequently asked questions
Can an SSR switch DC?
Only a DC SSR with a MOSFET output. An AC SSR uses a triac that will not turn off on DC.
Why does my LED bulb glow when the SSR is off?
SSRs leak a few mA when off, enough to light a small LED lamp. Use a mechanical relay or add a load resistor.
Can an Arduino drive an SSR directly?
Yes, most SSRs need only a few mA at 3 to 32 V on the input, which an Arduino or ESP32 pin can supply.
Do SSRs need a heatsink?
Yes above a few amps; each amp produces roughly 1 to 1.5 W of heat.
Which lasts longer, an SSR or a relay?
An SSR, if kept cool, because it has no contacts to wear. A relay is rated for about 100,000 switching cycles at full load.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 161 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Omron G3MB and G3NA solid-state relay datasheets
- Crydom (Sensata) SSR application notes
- Songle SRD relay datasheet
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



