2-way vs 3-way vs 5-way solenoid valve: when to use each?
solenoid valves come in different port configurations. The number of “ways” refers to how many ports the valve has. Choosing the wrong port configuration can make a simple automation task unnecessarily complex or even impossible.
This guide explains the differences between 2‑way, 3‑way, and 5‑way solenoid valves, and – most importantly – when to use each.
1. What does “way” mean?
A “way” is a port where fluid (liquid or gas) can enter or exit the solenoid valve. The number tells you how many connections the valve has.
-
2‑way valve: two ports – one inlet, one outlet. It simply opens or closes the flow path.
-
3‑way valve: three ports – common (C), normally closed (NC) and normally open (NO). It can switch flow between two different paths or mix/exhaust.
-
5‑way valve: five ports – one pressure inlet, two cylinder ports, and two exhaust ports. It is designed to control double‑acting cylinders or actuators.
Understanding the function of each is essential for designing pneumatic and fluid control systems.
2. 2‑way solenoid valve – the on/off switch
A 2‑way valve has one inlet and one outlet. It has two positions: open or closed. When energised, the valve changes state (normally closed opens; normally open closes).
Typical applications:
-
Turning water on/off in a coffee machine or water dispenser
-
Controlling flow to a single nozzle or outlet
-
Simple on/off control for air or liquid
When to use a 2‑way valve:
-
You only need to start or stop flow (no switching between different outlets)
-
You do not need to exhaust downstream pressure (the fluid can be trapped or flow to a safe place)
-
The system is simple and cost is a primary concern
Example: A home irrigation solenoid that opens to water a garden and closes when finished. This is a classic 2‑way NC (normally closed) valve.
3. 3‑way solenoid valve – switching or exhausting
A 3‑way solenoid valve has three ports. Depending on the design, it can:
Switch flow between two different outlets (diverting).
Supply pressure to one outlet while exhausting the other (typical for pneumatic applications).
In pneumatics, the three ports are usually:
-
Pressure (P) inlet – connected to the air supply
-
Outlet (A) – connected to the actuator (e.g., single‑acting cylinder)
-
Exhaust (R) – vents air to atmosphere
When energised, the valve connects P to A. When de‑energised, it connects A to R (exhaust), allowing the actuator to return by spring force.
When to use a 3‑way valve:
-
You need to control a single‑acting cylinder (spring return) – the valve supplies air to extend and exhausts to retract.
-
You need to divert flow from one outlet to another (e.g., fill one tank then another).
-
You need to vent pressure downstream when the valve is closed (e.g., to release trapped air or liquid).
Example: A single‑acting clamp cylinder – apply air to clamp, exhaust to unclamp. A 3‑way valve does this perfectly.
4. 5‑way solenoid valve – for double‑acting cylinders
A 5‑way valve has five ports:
-
Pressure (P) – compressed air supply
-
Two cylinder ports (A and B) – connect to the two sides of a double‑acting cylinder
-
Two exhaust ports (R1 and R2) – vent air from the cylinder
In a double‑acting cylinder, air pressure is needed on both sides to extend and retract. There is no return spring. The 5‑way valve switches the flow: in one position, P connects to A and B connects to exhaust; in the other position, P connects to B and A connects to exhaust.
When to use a 5‑way valve:
-
You need to control a double‑acting cylinder (air to extend and air to retract)
-
You need more force in both directions (spring return cylinders have lower retract force)
-
You are building an automated machine with linear or rotary actuators that require precise bidirectional movement
Example: A pick‑and‑place robot arm that extends and retracts under air power. A 5‑way valve controls the cylinder in both directions.
5. Comparison table (simple)
Feature
|
2‑way
|
3‑way
|
5‑way
|
Number of ports
|
2
|
3
|
5
|
Typical function
|
On/off
|
Switch or exhaust
|
Control double‑acting actuator
|
Can control single‑acting cylinder?
|
No (needs exhaust)
|
Yes
|
No (overkill)
|
Can control double‑acting cylinder?
|
No
|
No
|
Yes
|
Exhaust port
|
No
|
Yes (1)
|
Yes (2)
|
Best for
|
Simple flow on/off
|
Single‑acting cylinders, diverting
|
Double‑acting cylinders
|
6. How to choose: step by step
Step 1 – What are you controlling?
-
Simple on/off of a liquid or gas (no cylinder) → 2‑way valve.
-
A single‑acting cylinder (spring return) → 3‑way valve.
-
A double‑acting cylinder (air in both directions) → 5‑way valve.
Step 2 – Do you need exhaust?
-
If the downstream line must be vented when the valve is closed (e.g., to release pressure or allow gravity drain), use a 3‑way valve (even if no cylinder is involved).
-
If not, a 2‑way valve is sufficient.
Step 3 – Consider energy consumption
5‑way valves generally require more power because they move larger spools, but for intermittent use the difference is small. For battery‑powered systems, smaller 2‑way or 3‑way valves are often better.
Step 4 – Think about future expansion
If you might upgrade to a double‑acting cylinder later, designing a 5‑way valve into your manifold may be wise even if you currently use a single‑acting one. But for a one‑off device, choose exactly what you need.
7. Common mistakes
Mistake
|
Consequence
|
Using a 2‑way valve on a single‑acting cylinder
|
The cylinder will not retract because the trapped air has nowhere to exhaust.
|
Using a 3‑way valve on a double‑acting cylinder
|
The cylinder will only move in one direction; the other side will be blocked or pressurised incorrectly.
|
Using a 5‑way valve for simple on/off
|
Wasted cost, larger size, unnecessary complexity.
|
Forgetting that some 3‑way valves are “universal” (both NC and NO)
|
Check the datasheet – some can be configured, others are fixed.
|
8. Conclusion
Choosing the right solenoid valve is straightforward once you know what you need to control:
-
2‑way = simple on/off for flow.
-
3‑way = single‑acting cylinders or applications that need exhaust/diversion.
-
5‑way = double‑acting cylinders requiring powered motion in both directions.
Always check the valve’s datasheet for port sizes, pressure rating, flow coefficient (Cv), and compatibility with your fluid. When in doubt, start with the actuator requirement and work backwards to the valve.