• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Power Supply Circuits / Bidirectional Switch

DIY Circuits | Learn Basics | Arduino Coding

Bidirectional Switch

Last Updated on July 13, 2025 by Swagatam 75 Comments

In this post I have explained about MOSFET bidirectional power switches, which can be used for operating a load across two points bidirectionally. This is simply done by connecting two N-channel, or P-channel MOSFETs back to back in series with the specified voltage line.

What is a Bidirectional Switch

A bidirectional power switch (BPS) is an active device built using MOSFETs or IGBTs, which allows a two way bidirectional flow of current when powered ON, and blocks a bidirectional flow of voltage when powered OFF.

Since it is able to conduct across both ways, a bidirectional switch can be compared and symbolized as a normal ON/OFF switch as shown below:

Here, we can see a positive voltage is applied at point "A" of the switch and a negative potential is applied at point "B", which allows the current to flow across "A" to "B". The action can be reversed by simply changing the voltage polarity. Meaning, the points "A" and "B" of the BPS can be used as interchangeable input/output terminals.

The best application example of a BPS can be seen in all MOSFET based commercial SSR designs.

Characteristics

In Power Electronics, the characteristics of a bidirectional switch (BPS) is defined as a four-quadrant switch having the ability to conduct positive or negative current in the ON-state, and also block positive or negative current in OFF-state. The four-quadrant ON/OFF diagram for a BPS is shown below.

In the above diagram, the quadrants are indicated in green color which indicates the ON state of the devices regardless of the polarity of the supply current or the waveform.

In the above diagram, the red straight line indicates that the BPS devices are in OFF state and offers absolutely no conduction regardless of the polarity of the voltage or the waveform.

Main Features a BPS Should Have

  • A bidirectional switch device must be highly adaptable to enable easy and quick power conduction from both sides, that is across A to B and B to A.
  • When used in DC application, a BPS must exhibit minimum on state resistance (Ron) for improved voltage regulation of the load.
  • A BPS system must be equipped with proper protection circuitry to withstand sudden in rush current during a polarity change, or at relatively high ambient temperature conditions.

Bidirectional Switch Construction

A bidirectional switch is constructed by connecting MOSFETs or IGBTs back to back in series as shown in the following figures.

Here, we can witness three fundamental methods through which a bidirectional switch can be configured.

In the first diagram, two P-channel MOSFETs are configured with their sources connected back to back with each other.

In the second diagram, two N-channel MOSFETS can be seen connected across their sources for implementing a BPS design.

In the third configuration, two N-channel MOSFETs are shown attached drain to drain for executing the intended bidirectional conduction.

Simulation

Basic Functioning Details

Let's take the example of the second configuration, in which the MOSFETs are joined with their sources back to back, let's imagine positive voltage is applied from "A", and negative to "B", as shown below:

In this case we can see that when the gate voltage is applied, current from "A" is allowed to flow through left MOSFET, then through the internal forward biased diode D2 of the right side MOSFET, and finally the conduction completes at point "B".

When the voltage polarity is reversed from "B" to "A" the MOSFETs and their internal diodes flip their positions as shown in the following illustration:

In the above situation, the right side MOSFET of the BPS switches ON along with D1 which is the internal body diode of the left side MOSFET, to enable the conduction from "B" to "A".

Making Discrete Bidirectional Switches

Now I have explained how a bidirectional switch can be built using discrete components for an intended two way switching application.

The following diagram shows the basic BPS implementation using P-channel MOSFETs:

Using P-Channel MOSFETS

Bidirectional switch circuit using p-channel MOSFETs

When point "A" is positive, the left side body diode gets forward biased and conducts, followed by the right side p-MOSFET, to complete the conduction at point "B".

When point "B" is positive, the opposite side respective components become active for the conduction.

The lower N-channel MOSFET is controls the ON/OFF states of the BPS device through appropriate ON/OFF gate commands.

The resistor and the capacitor protect the BPS devices from a possible in rush current surge.

However, using P-channel MOSFET is never the ideal way of implementing a BPS due to their high RDSon. Therefore these might require bigger and costlier devices to compensate against heat and other related inefficiencies, compared to N-channel based BPS design.

Using N-Channel MOSFETS

In the next design we see an ideal way of implementing a BPS circuit using N-channel MOSFETs.

In this discrete bidirectional switch circuit, back-to-back connected N-chanel MOSFETs are used. This method demands an external driver circuit for facilitating the two way power conduction from A to B and in reverse.

The Schottky diodes BA159 are used to multiplex the supplies from A and B to activate the charge pump circuit, so that the charge pump is able to generate the necessary amount turn ON voltage for the N-channel MOSFETs.

The charge pump could be built using a standard voltage doubler circuit or a small boost switching circuit.

The 3.3 V is applied for powering the charge pump optimally, while the Schottky diodes derive the gate voltage directly from the respective input (A/B) even if the input supply is as low as 6 V. This 6 V is then doubled by the charge ump for the MOSFET gates.

The lower N-channel MOSFET is for controlling the ON/OFF switching of the bidirectional switch as per desired specifications.

The only disadvantage of using an N-channel MOSFET compared to the previously discussed P-channel are these extra components that may consume extra space on the PCB. However, this disadvantage is outweighed by the low R(on) of the MOSFETs and highly efficient conduction, and low cost small sized MOSFETs.

That said, this design also does not provide any effective protection against over heating, and therefore oversized devices may be considered for high power applications.

Conclusion

A bidirectional switch can be quite easily built using a couple back to back connected MOSFETs. These switches can be implemented for many different applications which require a bidirectional switching of the load, such from AC source.

References:

TPS2595xx, 2.7 V to 18 V, 4-A, 34-mΩ eFuse With Fast Overvoltage Protection Data Sheet

TPS2595xx Design Calculation Tool

Bidirectional Control

E-fuse devices

You'll also like:

  • imageModifying XL4015 Buck Converter with an Adjustable Current Limiter
  • 600V regulator connections600 V DC Voltage Regulator Circuit Module
  • half wave doublerSimple Voltage Multiplier Circuits Explored
  • LM337 maximum ratingsHow IC LM337 Works: Datasheet, Application Circuits

Filed Under: Power Supply Circuits Tagged With: Bidirectional, Switch

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Comparator Circuits using IC 741, IC 311, IC 339
Next Post: Diode Rectification: Half-Wave, Full-Wave, PIV »

Reader Interactions

Comments

Ankit says:
December 17, 2025 at 1:45 pm

Hi,
I want to make this bidirectional switch for cell balancing circuit.
Can you help?

Reply
Swagatam says:
December 18, 2025 at 8:13 am

Hi, please provide more details about your circuit, if possible I will try to figure it out…

Reply
hari says:
September 8, 2025 at 1:21 am

Hi, i am intrested in the Multiplexer circuit with mosfet or diodes i.e a common line should be driven by two inputs, they wont be available simultaneously, so no need to have the select line similar to digital multiplexer. This is basically 30V AC signals multiplexing.

Reply
Swagatam says:
September 8, 2025 at 5:41 pm

We are having a situation where you want to multiplex two 30V AC signals into a common line. But the thing is, the two input signals will never be present at the same time. So we do not need any select line like digital multiplexer. Now let us see two simple ways how we can do this.

1. Simple Diode OR Circuit Method

We can use two fast recovery diodes for this job. Like UF4007 type diode, because it is good for AC and high voltage, at least 100V rated.

Then we connect Input A to anode of first diode, and Input B to anode of second diode. The cathodes of both diodes are joined together, and this becomes our common output line.

How it works is like this – when Input A is present and Input B is absent, then the diode connected to Input A becomes forward biased and passes the 30V AC to output. Similarly, when Input B is present and Input A is absent, the diode from Input B conducts and gives output. Since they are never both active at same time, there is no conflict.

But we must use diodes which are properly rated for AC voltage and current. Otherwise, they may burn or not work properly.

2. MOSFET Switching Method

Now we can also use MOSFET switches instead of diodes, because this gives lower voltage drop.

What we do is we take two N-channel MOSFETs, and connect them in back-to-back way (Source to Drain and Drain to Source).

Then for each input, we connect one such MOSFET switch. And we permanently bias the Gate of MOSFET to make it always ON, because no select signal is required.

When Input A is present, the corresponding MOSFET conducts and passes the 30V AC to output. Same thing happens for Input B. The back-to-back MOSFET structure makes sure it can handle AC signals in both directions.

Important that we select MOSFETs with Vds rating above 50V and very low Rds(on), so that we have low loss and good performance.

Now which method is better?

We can say that if you want something very simple and cheap, diode OR method is good enough. But if you care for performance and want less voltage drop, then MOSFET switching method is better, though little more complex.

So now let me know that if you want me to design full circuit diagram for any of these methods, then I will do.

Reply
Rodrigo says:
September 19, 2024 at 2:01 am

Hi! Could this Bidirectional Switch circuit be adapted to be a bidirectional SPDT switch? I mean when the logic in OFF on the control signal, one bidirectional path is allowed, from A to B, for instance. When the logic is OFF on the control signal, the bidirectional path would be from A to C, for instance… Could it be done? Just like a physical relay?

Reply
Swagatam says:
September 19, 2024 at 8:27 am

Hi, that may be possible, for this you might need to short circuit the gate/source of the MOSFET which needs to remain disabled.

Reply
Helder Feixas says:
May 11, 2024 at 9:50 pm

Is there an available layout for this above Power Mosfet A C Solid state relay ,and or a Gerber file ,so I can order a PCB board to build a prototype.
Because I don’t have any knowledge on Gerber file Generator software .
Thanks

Reply
Swagatam says:
May 12, 2024 at 7:59 am

Sorry, PCB details are not available with me, however all the PCB related work can be easily handled by any professional PCB designer.
Also, I would recommend you to first test the design on a perfboard (strip board) by soldering, and proceed with the PCB only if it works satisfactorily:
https://www.homemade-circuits.com/wp-content/uploads/2024/05/simple-mosfet-AC-220V-ssr-circuit.jpg

Reply
gregg pierce says:
February 25, 2024 at 2:30 am

I just found your article on the DC relay.
“SPDT Solid State DC Relay Circuit using MOSFET”
Thanks Gregg

Reply
Swagatam says:
February 25, 2024 at 8:23 am

Ok, thanks for updating the information. Hope the circuit works for you.

Reply
gregg pierce says:
February 25, 2024 at 1:29 am

I have read your other articles on relays and such.
My question is can I just use DC as the input source and not the ac source?
The relay Im now using is “SRD-05VDC-SL-C 5Pin 5V DC Power Relay 10A 250VAC” and for the most part it works well. I want to replace that one with an homemade SSR or MOSFET’s like in your drawings above.
Thank You Gregg

Reply
Paul says:
December 19, 2023 at 2:29 pm

I want to ask you a question of using P-Channel MOSFETS.How do i calculate and select the capacitance and resistance?

Reply
Swagatam says:
December 19, 2023 at 3:31 pm

The resistor values are not critical, for the 10k you can use any value between 1k and 10k, for the 10 ohms you can use any value between 5 ohms and 30 ohms. The capacitor is not mandatory, you can use it or leave it.

Reply
Paul says:
December 20, 2023 at 12:54 pm

I’m not sure it’s true or false, I guess :

  1. The 10 ohms(resistance) is limit current and it can protect N-MOSFET.
  2. The 0.1uF (capacitor) and 10 Kohms(resistance) are to reduce leakage current.
Reply
Swagatam says:
December 20, 2023 at 1:05 pm

Your 1) assumption is correct.
2) 10K ensures the MOSFET gates are never floating during the OFF periods. 0.1uF is optional, it helps smooth switching of the MOSFETs

Reply
Paul says:
January 10, 2024 at 8:09 am

Sorry, If I care P-MOSFET’s Igss and N-MOSFET’s Idss, how do i calculate and select the capacitance and resistance? 

Reply
Swagatam says:
January 10, 2024 at 12:11 pm

The 10 ohm, the 10k and the 0.1uF are absolutely not critical and does not need precise calculations, you can use the same values as shown in the diagram.

Reply
Johnny says:
May 25, 2023 at 9:41 am

Hi Swagatam, Congratulations on the two-way switch, it’s very nice. If you had time to post a switch with MOSFET-N, for reverse polarity protection that would be great, thanks in advance and bless you.

Reply
Swagatam says:
May 25, 2023 at 9:48 am

Thank you Johnny, If I happen to find that circuit will surely post it for you.

Reply
Raymond says:
March 8, 2023 at 12:01 am

Hi, how can I apply this design to low-voltage cases? In this design, the input voltage must be higher than the forward voltage of the body diode. However, I need to design an analog switch for low-voltage applications such as 50-100mV. Can you suggest any circuit for that? It will be used for switching the capacitors paralleled with an inductor to change the frequency.

Reply
Swagatam says:
March 8, 2023 at 9:07 am

Hi, 50-100mV is very small voltage level and no transistorized bidirectional switch can work with such small voltages.
Instead you can try the following IC which has 4 analog bidirectional switches in it.

https://www.homemade-circuits.com/how-to-connect-ic-4066-in-a-circuit/

Reply
Raymond says:
March 8, 2023 at 10:21 pm

Thanks for your reply. 4066 is able to work at the low input voltage. However, it has a high on-state resistance. My design circuit will only work at very low power, such as uA to 1mA level. Can we use discrete components to achieve the function of 4066? I am not very familiar with the inner structure of the 4066, could you please help me?

Reply
Swagatam says:
March 9, 2023 at 9:07 am

With such small voltage and current values, designing a discrete bidirectional switch looks very difficult.
You can perhaps try a 4 BJT H-bridge circuit, using PNP transistor on the high side and NPN transistor on the low side.
Here’s an example for an H bridge BJT switching circuit:

https://www.homemade-circuits.com/wp-content/uploads/2023/02/24V-to-24V-full-bridge-inverter-circuit.jpg

Reply
Lil Man 21 says:
February 26, 2023 at 9:27 pm

How can i simulate two mosfets connected in series? I want to test just to make sure that they work. Im trying to simulate it using falstad.

Reply
Swagatam says:
February 27, 2023 at 8:18 am

I am not sure about it because I normally build circuits practically to test them, I don’t use simulators.

Reply
Andrew says:
February 19, 2023 at 4:00 am

12V zener is back to front. A much larger resistor than 10Ohms is needed to protect the N Channel FET as the 12V Zener gives a low resistance path from the supply of it’s above 12V

Reply
Tobias says:
February 22, 2022 at 2:23 am

Hi! Thank you for your very easy to follow article. I have an idea that I would be interested to hear you opinion on: How about driving two N-MOS back to back common source, with a traditional low side mosfet gate driver, fed by a approx 10V higher voltage than the bus voltage? This way the switch can be PWM’ed and also do steady on state. I’m thinking for example a UCC27533 gate driver, fed by a non-isoloted small step up converter, 12V->25V.

Thanks in advance.

Reply
Swagatam says:
February 22, 2022 at 9:14 am

Hi, I can’t figure out the answer at this moment, will need to investigate it deeper to get a proper answer.

Reply
Marco says:
February 3, 2022 at 3:02 am

Hi,

if i apply to your bidirectional switch a low level voltage, ( like 0.4 volt ) it not work a cause of Forward voltage of internal diode. How works the solid state relay, that works also 0.4 volt ?

Sorry for my english !

Reply
Swagatam says:
February 3, 2022 at 8:38 am

Hi, can you show me the SSR datasheet where 0.4 V conduction is mentioned.
In the above article if the diodes are replaced with schottky diodes then the drop will be hardly 0.2V

Reply
Tommy Park says:
October 24, 2021 at 5:16 pm

Hi, Swagatam
I’m beginner for electric circuit. In your last figure,
Why is there diode and resistor in parallel between 2 mosfets?
Thanks.

Reply
Swagatam says:
October 24, 2021 at 8:29 pm

Hi Tommy, the 12 V zener ensures that the gate voltage never exceeds this value regardless of the gate supply input value. The 10K resistor enables the gates of the MOSFETs to be referenced to ground and ensures that the gates are never in the floating condition, which is a recommended practice for all N channel mosfets.

Reply
Tommy Park says:
October 27, 2021 at 11:41 am

Thanks for your reply, I’ve got another question.
If power source A and B are same DC source like short circuit, how to decide flow direction(polarity) between A and B. I’m not fully understanding about schottky and charge pump relation as well.

Reply
Swagatam says:
October 27, 2021 at 1:26 pm

It won’t make sense if you use the same DC source for both the A/B points. The enable the current to flow, the A and B must be opposite in polarity, and with a series load, otherwise the current cannot flow.

The schottky diodes derive the voltage from A and B points and feeds them to the gate of the mosfets. If A and B voltage drops below 9V or 6V then the charge pump switches ON and boosts this voltage to higher levels so that the mosfet gates can receive optimal driving voltage. Both of these are optional, and can be replaced with customized gate feeds.

Reply
Mark says:
August 12, 2021 at 2:44 pm

This is a nice explanation, but the current path though the back2back mosfets is just wrong. The reason for putting another mosfet to the first one, instead of just a diode, is having the ability to block reverse current while also minimizing switching losses, because this parasitic body diode is almost always there and will make current flow when positive voltage is put across source-drain path, even if a mosfet is not turned on.
As you stated in a reply to a comment, the switching losses are indeed negligible. But that is because both of the mosfets conduct at the same time and one of the diodes that is forward biased is always bypassed by a conductive channel, depending on the current flow direction.

Reply
Swagatam says:
August 12, 2021 at 3:48 pm

Thank you, however I cannot see anything wrong in the current path. The diodes actually indicate the body diodes which conduct while the current passes through source to drain.

Reply
Mark says:
August 12, 2021 at 4:15 pm

An already conducting (turned on) mosfet doesn’t have a problem with conducting in both directions, because it does not act like a diode, but a resistor. The source-drain path will either conduct very well (depending on device’s RDSon) when turned on, or conduct through the diode even if the mosfet isn’t turned on. The diode will just prevent the voltage from exceeding a dangerous negative value on the drain in reference to source and that’s about it.

And depending on a body diode in a design isn’t usually bad practice. They are quite heavy-duty, especially in power mosfets, usually having the same rating as the mosfet itself.

Reply
Swagatam says:
August 12, 2021 at 4:22 pm

Yes that’s correct but the diode being forward biased will provide a better free path to the current, so that the current ignores the MOSFET and takes the easier path through the diode. If you connect a resistor and a diode in parallel the current will pass through the diode and not the resistor.

Reply
Mark says:
August 12, 2021 at 4:32 pm

Sure, that would be correct. Unless the resistor is in the milliohms range for a lower voltage power mosfet, meaning dozens of amps need to flow (if the datasheet allows that) to create a drop significant enough to make the diode open and start conducting.

But who would want their saturated mosfet to create such a drop?

Reply
Andrew says:
February 19, 2023 at 3:44 am

You are correct???? A MOSFET is on in both directions. The body diode only conducts when it’s off. Two MOSFETs are needed only when blocking is needed in both directions.

Reply
Selcuk says:
May 6, 2021 at 5:47 pm

Dear Swagatam,

I greatly appreciate your attention to detail. Before I ask google, I usually come here to find answers. I see that you are also an inventor, therefore I’m assuming that you are also somewhat familiar with patent applications.

Right now, I’m trying to compare two patent applications each disclosing electrical circuits using bidirectional switches. However, I’m only a mechanical engineer, therefore my knowledge of such circuits is rather rudimentary. I was wondering if you would try to help me to figure out the differences between the electrical circuits and maybe help me to understand them. In return I would gladly donate to one of your current and/or future projects.

Thank you in advance
Best regards

Reply
Swagatam says:
May 7, 2021 at 8:09 am

Thank you for the compliment Selcuk, appreciate it very much!

If you can send me the pictures through any online free image hosting site, then I can probably look into them and try to figure out.

Just upload the images to any free image hosting site, and provide the link here!

If it is within my reach, I will surely try to solve it for you!

Reply
Selcuk says:
May 11, 2021 at 2:53 pm

Dear Swagatam,

thank you for your reply. At the moment, it seems that I manage to solve the issue by myself. If I encounter further issues I would come back to you if you don’t mind.

Best regards.

Reply
Swagatam says:
May 11, 2021 at 3:42 pm

No problem Selcuk, wish you all the best!

Reply
Andrew says:
February 19, 2023 at 3:52 am

MOSFET body diodes act as standard silicon diodes with 0.7V drop (see data sheets). The MOSFETs short out the body diodes here so are not involved in losses

Reply
Andrew says:
February 19, 2023 at 3:49 am

Use opto-isolators for separating the switching paths. The power for each gate drive can be derived from isolated dc-dc converter modules.

Reply
Swagatam says:
November 18, 2021 at 6:21 pm

Please contact the datasheet engineers for the clarification.
This also means when a single mosfet is used with an inductive load then the back EMF would force through the mosfet Source to drain and the body diodes would be meaningless.

Reply
Amar says:
November 18, 2021 at 6:00 pm

Yes, you are right. The concept of back to back connected MOSFETs evolved only to block the reverse current flow from B to A when MOSFEts are turned off when potential at B is higher than A. When the back to back connected switch is made ON, the current flows only through ON resistances of both MOSFETs. Body diodes never come into picture during ON condition. Mr. Swagatham may comment please.

Reply
Swagatam says:
April 8, 2021 at 11:43 am

that drop is negligible and acceptable. Current will always take the easier course, that is though the forward biased diode.

Reply
SteveOne says:
April 7, 2021 at 4:22 pm

During direct conduction (both MOSFETs ON) the current does NOT flow through the body diode. Otherwise, you would get a 0.6 – 0.9 V drop between in and out!

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image

Subscribe to get New Circuits in your Email

Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (133)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (87)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (37)
  • Wireless Circuits (31)

Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

Recent Comments

  • Swagatam on Simple Tone Control Circuits
  • Ken on Simple Tone Control Circuits
  • Swagatam on Circuit Projects for Beginners and School Students
  • Swagatam on 10 Watt Stereo Amplifier Circuit Diagram
  • Swagatam on Triac Battery Charger Circuit

© 2026 · Swagatam Innovations