SSR or Solid state relays are high power electrical switches that work without involving mechanical contacts, instead they use just a couple of solid state semiconductors like MOSFETs for switching an electrical load, smoothly, and with high efficiency.
SSRs can be used for operating high power loads, through a small input trigger voltage with negligible current.
These devices can be used for operating high power AC loads as well as DC loads.
Solid State Relays are highly efficient compared to the electro-mechanical relays due to a few distinct features.
Main Features and Advantages of SSR
The main features and advantages of solid state relays or SSRs are:
- SSRs can be built easily using a minimum number ordinary electronic parts
- They work without any form of clicking sound due to the absence of mechanical contacts.
- Being solid state also means SSRs can switch at much faster speed than the traditional electro-mechanical types.
- SSRs do not depend external supply for switching ON, rather extract the supply from the load itself.
- They work using negligible current and therefore do not drain battery in battery operated systems. This also ensures negligible idle current for the device.
Basic SSR Working Concept using MOSFETs
In one of my earlier posts I explained how a MOSFET based bidirectional switch could be used for operating any desired electrical load, just like a standard mechanical switch , but with exceptional advantages.
The same MOSFET bidirectional switch concept could be applied for making an ideal SSR device.
For a Triac based SSR please refer to this post
Basic SSR Design

In the above shown basic SSR design, we can see a couple of appropriately rated MOSFETs T1 and T2 connected back to back with their source and gate terminals joined in common with each other.
D1 and D2 are internal body diodes across the drain/source of the respective MOSFETs.
An input DC supply can also be seen attached across the common gate/source terminals of the two MOSFETs. This supply is used for triggering the MOSFETs ON or for enabling permanent switch ON for the MOSFETs while the SSR unit is operational.
The AC supply which could be up to grid mains level and the load are connected in series across the two drains of the MOSFETs.
How it Works
The working of the proposed sold state relay can be understood by referring to the following diagram, and the corresponding details:


With the above setup, due to the input gate supply connected, T1 and T2 are both in the switched ON position.
When the load side AC input is switch ON, the left diagram shows how the positive half cycle conducts through the relevant MOSFET/diode pair (T1, D2) and the right side diagram shows how the negative AC cycle conducts through the other complementing MOSFET/diode pair (T2, D1).
In the left diagram we find one of the AC half cycles goes through T1, and D2 (T2 being reverse biased), and finally completes the cycle via the load.
The right side diagram shows how the other half cycle completes the circuit in the opposite direction by conducting through the load, T2, D1 (T1 being reversed biased in this case).
In this way the two MOSFETs T1, T2 along with their respective drain/source body diodes D1, D2, allow both the half cycles of the AC to conduct, powering the AC load perfectly, and accomplishing the SSR role efficiently.
Here's an excerpt from the datasheet of the article.

Video showing the testing of the above SSR circuit
Making a Practical SSR Circuit

Why We Use Two MOSFETs For AC
When we want to switch AC using MOSFETs then we find that a single MOSFET cannot block current in both directions because of its body diode.
So we use two N Channel MOSFETs and we connect their sources together and we keep their drains toward the AC line terminals.
When we do this arrangement then the body diodes oppose each other and the AC can be fully blocked when the gate drive is zero. So the pair works like an AC switch.
Why We Need A Floating 15 V Supply
When we use back to back MOSFETs in AC circuits then the common source point does not stay at ground level.
This point keeps moving up and down with the AC waveform, so now we understand that the gate voltage also must follow this moving point, because the MOSFET only cares about the Vgs difference.
When the source rises, then gate must rise above it, when the source falls, then gate must fall above it.
So we need an isolated 15 V supply that floats along with the MOSFET sources.
When the supply is floating, then it does not care about earth or neutral and it simply rides with the circuit, so the MOSFET always sees a correct gate voltage.
Why The Source Node And The 15 V Negative Can Touch
Many people think that isolation is broken when the isolated supply negative is connected to the MOSFET source node.
But since the isolated supply has no link with mains or earth, it does not matter. It only follows the MOSFETs.
So the 0 V of the 15 V supply becomes the reference for the MOSFET gates and sources.
When we do this connection, everything still stays isolated from the outside world.
How The Gate Is Driven From The 12 V Control Side
We use an opto or a small control section in the 12 V side. When we give 12 V input to this module then the opto transistor pulls the floating 15 V supply positive toward the MOSFET gate through the gate resistor.
When this happens then the MOSFETs get a Vgs of around 12 V and they turn ON.
When we remove the 12 V input then the gate is left without drive and the resistor that we added slowly discharges the gate. When the gate reaches the same level as the source then the MOSFETs turn OFF.
How The Circuit Behaves When AC Passes
When the AC line is connected to the MOSFET drains then common source node becomes a floating midpoint that shifts according to the load and the waveform.
But the gate supply also floats in the same way so the Vgs stays correct.
When we give the 12 V command, then MOSFETs turn ON in both half cycles and the AC flows without restriction.
When the input is removed then the gate falls down through the 1 M resistor and the MOSFETs turn OFF and block both directions due to the anti series body diode configuration.
Why 220k Is Acceptable In This SSR
We use 220k because we do not need ultra fast gate discharge, and because the SSR is not switching at very high speed.
The AC cycle itself is very slow compared to MOSFET switching, so even a 10 ms or 20 ms fall time is perfectly OK. The 220k value also keeps the loading of the 15 V supply to a very small level, but if you want a little faster discharge you can use 100 K also. Both values work fine because the switching is slow.
Final View Of The Completed SSR
So now the whole SSR becomes very simple. Two N Channel MOSFETs are connected source to source, the drains go to AC.
The floating 15 V positive is fed to the gates through individual 22 Ohms.
The floating 15 V negative goes to the common source.
A 220 K resistor is placed between the gates and the sources of each of the MOSFETs.
The isolated 12 V side drives the opto, and the opto connects the 15 V positive to the gate when it receives the command.
Conclusion
So now we get a simple, very easy to understand bidirectional MOSFET SSR which can switch AC efficiently.
The use of the floating 15 V module makes the design work smoothly even when the AC line moves up and down.
The resistors keeps the gate under control.
Source.
Reference: SSR




Comments
sir, can you help me to design a DC SSR, bidirectional, maximum voltage of SSR 15v DC, but adjustable from 0,5v to 15v, and a current of 10-20A, SSR powered by 12 vDC from 7812, switching adjustable from 0 hz – 100 hz, so Mosfet + Optocoupler based is prefered. 0-15v is isolated from 12v DC, but 0/Ground is common, thanks in advance. i try to built high ampere low voltage, voltage injector, by switching PSU 0-15v to charge and discharge capacitor, so even at 1 vDC, it can deliver maybe 4-5 Amps to heat the shorted component on circuit
Hi Arya,
I have designed the circuit for you…please check the updated diagram at the bottom section of the above article….
Hello, I’m building/have built a circuit that takes a 50hz ac signal from a class ab amplifier circuit and puts it as the ac input to a n channel fet relay as per fig. 3 above. I’m using a fod 3180 as the driver for the fet’s and so far everything works fine. Where I’m having issues is that I’m using a 555 timer to turn on and off the fod 3180 at about 1khz. On the positive half of the cycle the ac is shut off as expected, as a series of steps up and down the waveform; however, the bottom half of the cycle is unaltered, it’s just a negative sine wave.
I have to admit I’m just about at my wits end on this one. Do you have any idea why the negative half cycle doesn’t turn on and off like the positive half?
Thanks for any help you may provide.
Hi, did you connect the sources of the two MOSFETs with the negative (ground) of the IC 555? And I think a MOSFET driver is not required…you can directly feed the pin#3 of Ic 555 with the gates of the two MOSFETs
Hi Swagatam,
No, I didn’t connect the sources to the neutral ground and I used the driver because I thought that I read in the article that when you use N-channel FETs a driver is necessary in order to charge and discharge the gates of the FETs.
Thanks for the advice, I’ll try it and see how that works out. I’ll let you know if it works.
….I think you are right….a gate driver is strictly required for this application.
Please refer to the following post and check the following and read the “Using N-Channel MOSFET” section:
https://www.homemade-circuits.com/bidirectional-switch/
No problem Kurt,
Initially just connect the pin#3 of the IC 555 with the common gates of the MOSFETs, and connect the common sources with the negative or ground of the 555 circuit, also make sure to connect a 1k resistor between the gates and sources of the MOSFETs. A driver is necessary only when the load current is very high…
hie this diagrams are using DC 12v to genarate AC . can you provide me with a diagram which uses DC 400v to genarate AC . thanks
This circuit is not generating AC, it is controlling an AC load.
Hi, having minimal knowledge of electronics, I was wondering if the final circuit would be able to work safely on 240VAC power input and an 800W resistive load.
Hi, the above concepts are recommended only for experts in the field, not for newcomers, so I won’t recommend it to you.
If your load is a resistive load, then it can be simply controlled through a single MOSFET and a bridge rectifier, no need of the above complex design. Let me know if you would like to see the full schematic.
I have a 3d printer hotbed (resistive load 4 x 200W) and this should be controlled using PWM. So I was trying to find a solution for that, and discovered you article which seemed fit for my case. If you think that another simpler circuit, could make it work, I would like to have the schematic.
In any case, thank you for responding!
I think you should try a dimmer switch circuit such as this for PWM controlling of your load:
https://www.homemade-circuits.com/simple-ceiling-fan-regulator-circuit/
Your diagram is completely wrong. I don’t think you know what you’re talking about at all. When the MOSFET is on, current flows through the channel, not the body diode.
I know the current flows through the channel, the main thing is that, does the above concept work as intended in the application, or not.
Hi , I have a question .Is there anywhere I can find a Power mosfet Solid State relay for 20 amps using 120 VAC for sale or at least PCB kit ,maybe even pcb layout with , if possible a GERBER file, so I can order the production of a prototype Mosfet SSr for A C ?
Thanks in advance
Hi, you can try the following modified version of the first circuit:
https://www.homemade-circuits.com/wp-content/uploads/2024/05/simple-mosfet-AC-220V-ssr-circuit.jpg
However, I do not have the PCB details for this design.
Thank you very much !!
Hi sir, hope all is going well. Sir i need your
kind support. I want to make 40amp ssr.can you provide me diagram with components plz as usual in easy way plz
Hi Ghulam, what type of load do to want to control with the SSR, AC load or DC load?
Sir i want to run AC load, i tried with bt136, but as you know bt136 can’t handle heavy load…..i have bta41 800B. So plz guide me with diagram and components which is required. Plz
Thanks
Hi Ghulam, yes you can use BTA41800, it is rated to handle 40 amps load.
I hope you are referring to the following design
https://www.homemade-circuits.com/wp-content/uploads/2021/06/MOC3040-SSR-circuit-compressed.jpg
Yes sir same i want, sir what is the value of R1?all resister required qaurter watt? Sir can i use moc3021?sir plz guide me with diagram of bta41 800b. I dont have TIC 226 D/M plz
Thanks
Ghulam, R1 can be 1k 1/4 watt if the input voltage is between 5v and 15V.
All other resistors can be 1 watt CFR.
Yes MOC3021 can be also used.
The shown triac can be replaced with your specific 40 amp triac, no issues.
MT1 will go to the R4 side and MT2 will go to the R2 side.
Thank you sir, i will try and update you.
Sure, no problem, Ghulam.
Hello Sir, great document Thank you for everything.
I have a question please, can we use the basic circuit to connect or disconnect a series of 200v photo voltaic panels?
Thank you again sir
Thank you Laurent, you can use the basic circuit to connect or disconnect PV panels, however the above circuits are meant for AC supplies and loads, for DC supplies, like from a PV systems, you can employ a simpler design using a single MOSFET.
Hi , my name is Helder , I am trying to find power Mosfets S S Rs, for a project where I can’t use Triac SSRs, maybe I am looking at wrong places , I just can’t find MOSFET SSRs for A C voltages on AC currents like 10 to 15 amps , any help would be greatly appreciated
Hello Helder, the circuit explained in the above articles specifically designed to handle AC inputs, so you can use the above circuits with AC supply and AC loads.
One minor issue with the explanation of the circuit is whether or not current is conducted mainly through the body diode in the “reverse” MOSFET or whether it goes through the channel. Your second figure suggests that this current goes through the body diode but in most practical circuits, it won’t. The channel of a MOSFET can conduct in both directions when the gate is appropriately biased. Placing a voltage on the gate creates a conducting channel between the drain and source which acts like a low-value resistor. If your gate drive is adequate for the MOSFETs involved and they are sized appropriately for the current, the forward drop across the channel resistance is likely to be far lower than the forward voltage of the body diode, so the diode won’t turn on and will pass negligible current whilst the vast majority of it passes the the channel just like it does in the “forward” MOSFET.
Thank you for your quick response. Sorry to hear you haven’t yet designed one. If and when you do, will I be sent an email letting me know?
No problem! Sure, I will!
Interesting subject. Thank you for requesting questions.
Magnetic switches are essential for power equipment safety (table saws etc). Much of the older equipment, that is still effective, continues to be used but are not so equipped. Magnetic switches are expensive and, I’m sure, could be replaced my electronic ones. Have you designed/made such a switch that might be used for 120v or 240v single phase circuits?
Hall effect sensor and reed relay are the electronic magnetic sensors, but they require an additional electronic circuit to work. I haven’t yet designed a specific circuit using these sensors for the mentioned application.
Sure, No problem!
Thank you for giving the details about the connections.
I’ll let you the know the results for this and/or if I face any issue I will ask in comment section.
In the following circuit, remove the 15K resistors, and connect the 6 V or 12V AC secondary wires of the transformer with BA159 anode and the common line which connects with the ground side of the 47uF capacitor, and the 12 V zener diode anode.
https://cdn.hackaday.io/images/54431494705050322.png
Ok, can you provide me a reference circuit diagram for testing with a transformer.
Thank you
If a bridge rectifier is used then the there would be no issues according to me. Still, you can try confirming the present diagram through a transformer based power supply. If everything works OK then you can try the resistive transfomerless power supply with bridge rectifier.
Ok, I will try that. But what I’m thinking is still the -ve of the DC part has to be connected to source of the mosfet which in turn will be connected to node2 (phase/neutral) through Q2 body diode.
Thank you
If the ground connection looks confusing, then in that case you try a bridge rectifier instead of a single diode rectifier.
The alternate circuit you have provided is for discharging the gate of the mosfet more faster and also to protect the gate of the mosfet by adding gate resistor?
Also I have one doubt –
Example when there is a high pulse at D1, internal transistor will turn ON and external will be OFF. Due to that the mosfet will get high at its gate.
When there is low at D1, internal transistor will be OFF and external will be ON which will connect the gate of the mosfet to ground.
The ground is also connected to one of the mains terminal (phase/neutral) through the body diode of Q2.
In this same article you explained me that there is no harm because only ground is connected to one of the mains terminal and +ve part is not.
So when external transistor is ON the +12V is now connected to the same terminal of AC where ground is connected. Is this safe? If yes how?
Thank you in advance.
I completely missed that the optocoupler is being used for the PWM input. In that case a 1KHz frequency is quite a large frequency, and the R5 and R13 are very high values which must be reduced to 50 ohms. Or alternatively you can try modifying the setup in the following manner by adding an extra transistor:
https://www.homemade-circuits.com/wp-content/uploads/2023/05/bidirectional-switch-using-optocoupler.jpg
Okay.
Also there is no high frequency switching at the gate of the MOSFETs (only around 1KHz of PWM to drive the MOSFETs).
I have also read that for high frequency switching in order to provide a good turn on, turn off pulse & to reduce ringing a proper gate resistor is required.
So, as you said in my circuit it is not that important.
I will tinker with the circuit with what all discussion I had with you & will let you know.
Thanks a lot for your response.
The gate resistor and the gate diode may not be relevant for this diagram. The diode across the gate resistor is for enabling quick discharge of the MOSFET gate internal capacitance during the OFF periods of the gate switching frequency. But since here no frequency is used at the gates, it is a constant DC, the gate resistor and diode are not relevant and are not important.
The external diodes across the MOSFET drain/source is the only hope now and the TVS diode that you may be adding.
I’m using this circuit for my project——–
https://cdn.hackaday.io/images/54431494705050322.png
I’m not sure if the MOSFET is getting damaged due to surge current. It can be one possibility of surge current. I’m also going to add a fuse in series with the MOSFET (also given in the reference circuit). In my current design I’ve not added the fuse (fuse can protect the MOSFETs from surge current).
Also as you said, I’m going to add a series gate resistor for individual MOSFETs.
I want to know the purpose of connecting a reverse diode in series with the gate of the MOSFET.
I’m not able to select a proper MOV for protecting the Drain-source of the MOSFET.
So I’m planning to use a TVS diode for that by changing the MOSFET number. Currently I’m using IRF740 as mentioned in the reference diagram. I can also use IRF840 after checking its datasheet. Because with IRF840 I’m able to select a proper TVS diode in that range.
I have connected a 10k resistor between the gate & source of the MOSFETs.
As you said also will try by connecting an external diode parallel to body diode.
I’m trying to make this circuit better than the current version & your response is helping me a lot.
You are welcome Omkar, Is your MOSFETs blowing off due to surge current? I have not yet tested the above concept with 220V AC, I have tested it with 12 V AC only so i am not so sure about this situation. Also, calculating snubber can be quite tricky again, and I do not have the necessary formulas. Therefore I would recommend MOVs instead which are quite easy to determine.
Yes the clamping voltage can be below 400 V, maybe around 380 V, that might do the job. However if your MOSFETs are blowing without an MOV then that’s not a good thing. You can also try putting external diode across drain/source of the MOSFETs similar to the internal body diodes of the MOSFETs. I know putting external diodes does not make sense in this circuit since the MOSFETs can conduct both ways, still you can check the response by putting these external diodes whether these are able to provide any sort of avalanche protection.
I hope you have proper gate resistors installed with reverse diode, in series with the gates of the MOSFETs. Also make sure to have a 1K resistor installed across the gate/source of the MOSFETs.
Yes, selecting a proper TVS diode is a little tricky. Also thank you very much for your help till now.
I’m having one question regarding the protection of MOSFET & was reading your article – https://www.homemade-circuits.com/mosfet-protection-basics-explained-is/
While testing my circuit for AC light dimmer which uses two MOSFETs in series(in this way – https://www.homemade-circuits.com/wp-content/uploads/2020/01/SSR-concept.png), till now 2-3 times what happened is I’m getting a short across the drain & source of the MOSFET in both directions (forward & reverse bias of the internal diode).
In a new MOSFET, I get 0.5-0.7 V in forward bias & no reading in reverse bias which shows that the MOSFET is in good condition.
After replacing the MOSFET with a new one the circuit starts working again but I think this issue is nearby to avalanche protection mentioned in your article.
So, I think adding RC snubber/ MOV across the MOSFET would be a good idea. The max Vds voltage mentioned in the datasheet of IRF740 is 400V so need to select MOV around this voltage.
How can I calculate values of R & C to protect the MOSFET? Do you recommend any other type of components that can be used for protection?
Thank you in advance.
You are right, the clamping voltage should be close to the maximum permissible input voltage of the device. For example for your SMPS the breakdown down voltage of the TVS diode can be around 270V and the clamping voltage can be around 300 v, otherwise the TVS diode is not going to provide any protection to your SMPS
For P6KE350CA, the clamping voltage is still very high at around 482V.
For P6KE400CA, the clamping voltage is 548 V again too high.
I am seeing that the breakdown voltages are much lower than the clamping voltage, so i am not sure what should be near the maximum device voltage, the breakdown voltage or the clamping voltage?
The SMBJ188A has a clamping voltage of 304 V which looks good, but a breakdown voltage of around 209 V which is too low.