Both are positive-displacement pumps: every revolution (or every stroke) moves a fixed volume, the displacement, and their theoretical flow is displacement × speed. What sets them apart is leakage. In a gear pump, the liquid escapes through the clearances between moving parts, and with the clearances a printer gives it only suits oil, or water at very low head. In a diaphragm pump, the leak is in the valves: with good ones, it moves water and primes itself. That decides what you print and what you buy.
| Pump | Use | Self-priming | Shaft seal | Flow |
|---|---|---|---|---|
| Gear | viscous liquids: oil, glycerine, syrup | not when printed | yes (dynamic) | continuous |
| Diaphragm | water and thin liquids | yes, if the dead volume is small | no: the liquid only touches the housing, the diaphragm and the valves | pulsing |
| Peristaltic (Peristaltic pumps) | dosing; liquids that must touch nothing but the tube | yes | no | pulsing |
The gear pump: how it moves the liquid
Two identical gears mesh inside a close-fitting housing. It looks as if the liquid passes between the meshing teeth, but it does not: the liquid travels round the outside, trapped in the spaces between the teeth and the housing wall, from inlet to outlet. The mesh acts as a plug and stops it coming back.
The inlet is on the side where the teeth come apart: the space opens and draws liquid in. The outlet is where the teeth come back into mesh: the space closes and pushes it out. Reverse the direction of rotation and inlet and outlet swap.

With two identical gears of module m, z teeth, face width b and pressure angle α, the displacement per revolution is:
V = 2π·b·m²·(z + 1 − π²·cos²α/12) ≈ 2π·b·m²·z
With α = 20°, the bracket comes to z + 0.27. Displacement grows with m² and only linearly with z: for the same diameter, a few large teeth move more liquid than many small ones. That is why gear pumps have few teeth.
Undercut sets the limit. At 20°, the minimum without undercut is 17 teeth; in practice you go down to 14 and accept slight undercut. Commercial pumps go lower with profile shift. In a printed one, 14 is the floor and 15–17 seal better. In a pump, the contact ratio ε is what closes the way back: as long as one pair of teeth is always touching, liquid cannot return through the mesh. A 14/14 pair of module 2 has ε = 1.46 on paper, but the rounded tip and the backlash of a printed gear take some of it away. The geometry of the pair is in Spur gears.
For the part of each pitch during which two pairs of teeth touch at once (around 46 % of the pitch with ε = 1.46), a closed pocket sits between them and shrinks as the gears turn: the trapped volume. The liquid has nowhere to go, which causes noise and loads the shafts. Commercial pumps have a relief groove in each cover, level with the mesh, that connects that pocket to the outlet while it shrinks. That fixes it, and it takes a minute to draw into the cover.
Clearance is everything: the cube law
The flow that goes back from outlet to inlet through a slit of width w, height h and length L, with a pressure difference Δp and a viscosity μ, is:
Q = w·h³·Δp / (12·μ·L)
This is the formula for laminar flow between parallel plates, and it governs everything that follows. Clearance goes in cubed: double it and leakage rises eightfold. Viscosity is in the denominator: with a 100 cSt oil (≈ 0.09 Pa·s), leakage is about ninety times smaller than with water (≈ 1 mPa·s at 20 °C).
Leakage has two paths. One is the radial tip clearance, between the tooth tip and the housing bore; there the liquid has to cross several teeth in series. The other is the side clearance, between the gear faces and the covers. The side clearance leaks the most, in commercial and printed pumps alike; in a printed one it is also the hardest to close.
The shut-off pressure is what the pump reaches with the outlet closed: the whole displacement goes back through the clearances and flow is zero. For the pump worked through in the next section, a simple model (four teeth in series at the tip and the faces as four 10 × 10 mm slits) gives these orders of magnitude:
| Clearance per face | Water | 100 cSt oil |
|---|---|---|
| 0.20 mm (sliding fit) | ≈ 6 kPa (≈ 0.6 m of water) | ≈ 500–600 kPa |
| 0.10 mm | ≈ 48 kPa (≈ 5 m of water) | several MPa: the housing gives way first |
| 0.05 mm (lapped + shim) | ≈ 380 kPa (≈ 39 m of water) | higher still |
For reference, 1 bar = 100 kPa ≈ 10.2 m of water column. With the 0.2 mm per side sliding fit (Clearances for moving parts), a water pump stalls at about 0.6 m of head, where flow has already dropped to zero. With 0.1 mm per face it gets close to 0.5 bar; with 0.05 mm, almost 4 bar. A printed gear pump is an oil pump, or a water pump for very low heads.
The tip clearance is the easy one to get. The housing bore, printed with its axis vertical, comes out round but small (Why holes print small): ream or sand it to the clearance you want.
The side clearance cannot be fixed by tuning the print (Real printed clearances). Do it with the construction: the body is a through ring as thick as the gears, closed by two covers. Print the gears slightly wider than the body and lap them together with the body on wet-and-dry paper laid on a sheet of glass, until all three are flush. Then put a single 0.1 mm shim gasket between the body and one of the covers: that leaves 0.1 mm in total, about 0.05 mm per face if the gears float between the two covers. With a gasket on each side it would be 0.1 mm per face. Use PTFE or brass shim stock, which does not compress; gasket paper compresses under the clamping force and changes your clearance. The housing faces that seal against the gears must be the bed face or the last top layer, and they must come out flat and smooth (Top surfaces). If the joint between the housing halves is not a shim, size it with O-ring grooves or Printed TPU gaskets.
A printed gear pump will not prime dry. Commercial ones, with clearances of 10–20 µm, can pull some suction lift on air; yours cannot, because air (≈ 0.018 mPa·s) is about 55 times less viscous than water and escapes through clearances ten times larger. The gears turn and draw nothing. Fill it with liquid before you start it, or place it below the tank so it fills itself.
Print the gears flat, axis vertical. Put the seam at the bottom of a tooth space, at the root, where it touches neither the housing nor the other tooth: on the tip it spoils the tip clearance. Chamfer the bed edge of the teeth so elephant's foot does not rub the cover (The face on the bed).
Example: a gear pump for oil
You want to transfer oil of about 100 cSt with a gearmotor at 500 rpm. Gears of m = 2, z = 14, b = 12 mm. For oil, PETG or PA. If it might ever pump water, PETG only: PA absorbs water, swells and seizes at 0.05 mm clearance.
Geometry: d = m·z = 28 mm, da = m·(z + 2) = 32 mm, df = m·(z − 2.5) = 23 mm, center distance a = 28.00 mm. The housing bore is two overlapping circles, each Ø32 mm plus twice the tip clearance, with their centers 28.00 mm apart.
Displacement: V = 2π·12·2²·(14 + 0.27) ≈ 4.3 ml per revolution (the approximation 2π·b·m²·z gives 4.2). At 500 rpm, the theoretical flow is 2.15 L/min.
With 100 cSt oil and 0.2 mm clearances, leakage is about 0.2 L/min at 0.5 bar, a volumetric efficiency of around 90 %. With water and the same clearances, the pump gets no further than about 6 kPa: above that, leakage exceeds the displacement and flow is zero. With water and 0.05 mm per face, efficiency is around 87 % at 50 kPa. Measure the flow of your own pump.
Torque to drive it: T = Δp·V / (2π) plus friction. At 0.5 bar, 50,000 Pa × 4.3·10⁻⁶ m³ / 2π ≈ 0.034 N·m in the ideal case. Allow two or three times that for friction at the faces and the lip seal (Friction and wear). The hydraulic power, Δp·Q, is about 1.8 W. With that torque and that speed you choose the motor in Choosing a motor.
The pressure also pushes each gear toward the inlet, with a force of about Δp·b·da = 0.05 MPa × 12 mm × 32 mm ≈ 19 N. That is far more than the few newtons the tooth transmits (nowhere near the loads Sizing a gear that holds deals with), and it is what wears the shaft bores oval in the plastic. For shafts, use Ø4 or Ø5 mm steel dowel pins, not printed shafts: they have to be straight and smooth where the lip seal runs. Support each shaft in both covers; cantilevered, the gear tilts and wears the housing on the inlet side. The drive gear is fixed to its shaft (Fixing a part to a shaft); the other idles on its own shaft.
The drive shaft leaves the housing and needs a rotary seal: an off-the-shelf lip seal sized for the shaft. An O-ring on a rotating shaft only works at low speed, with little squeeze and a ring made for rotary duty; the 10–16 % dynamic squeeze in O-ring grooves is for reciprocating motion, not for a shaft that spins. To do without dynamic seals altogether, drive the gear through the cover with a magnetic coupling (Magnetic gears and couplings).
The diaphragm pump: displacement and valves
A diaphragm clamped at its edge (free diameter D) carries a rigid plate of diameter d at its center and moves up and down, driven by an eccentric or a connecting rod. On the down stroke the chamber grows and liquid comes in through the inlet valve; on the up stroke it leaves through the outlet valve. The two check valves are the pump: without them, the liquid only shuttles back and forth in the same tube.
The plate moves up and down as a whole; the free part of the diaphragm, the annulus between d and D, tilts and sweeps a truncated cone. With a stroke s:
A_ef = π·(D² + D·d + d²) / 12
V = A_ef·s
With d = D it would be a piston (π·D²/4 times the stroke); with no plate (d = 0), a third of that. The larger the plate, the more volume the same diaphragm moves. The eccentric gives a stroke s = 2e; its geometry and friction are in Crank-sliders and eccentrics.
The force on the diaphragm is F = Δp·A_ef. That is the load the eccentric and its shaft supports carry.
The dead volume Vd is what is left in the chamber and in the passages up to the valves with the diaphragm at the top. Whether the pump primes itself depends on it, and priming has two halves. On the down stroke, with the suction tube full of air, the chamber pressure falls, at best, to p_atm·Vd / (Vd + V), by isothermal expansion of the air; if that is not enough to lift the liquid and open the inlet valve, it will not draw. On the up stroke, the air is compressed to p_atm·(Vd + V) / Vd, and the outlet valve only opens if that exceeds the pressure in the outlet tube plus the valve's cracking pressure. If the outlet tube already holds a column of liquid, the pump moves the same air back and forth and never primes. That is why the valves sit right against the chamber, and the chamber is flat with no corners. Prime with the outlet free, or with a bleed valve next to the chamber.
The valves can be ball, duckbill or flap valves, or off-the-shelf silicone umbrella valves. Their design and what they withstand when printed are covered in Check valves and taps. Two things matter here. Each valve's cracking pressure takes head off both the delivery and the suction. And a valve that does not close fully is this pump's leak, as the clearance was in the gear pump.
Example: a diaphragm pump for water
Diaphragm with free diameter D = 40 mm, plate d = 24 mm and an eccentric of e = 1.5 mm (s = 3 mm), driven by a gearmotor at 300 rpm.
A_ef = π·(1600 + 960 + 576)/12 ≈ 821 mm². V = 821 × 3 ≈ 2.46 ml per stroke. Theoretical flow: 2.46 × 300 ≈ 0.74 L/min.
At 0.5 bar (≈ 5 m of water), the force on the eccentric is 0.05 MPa × 821 mm² ≈ 41 N. Peak torque is F·e ≈ 0.062 N·m; mean torque (work per revolution divided by 2π) is Δp·V/2π ≈ 0.02 N·m. Hydraulic power is about 0.6 W. Size the motor for peak torque, not mean torque.
Priming: with Vd = 1 ml, the chamber goes down to 101 × 1/3.46 ≈ 29 kPa absolute; with Vd = 3 ml, only to 56 kPa. Every milliliter of dead volume costs you dry suction lift. That is a theoretical limit: in practice the valves and leaks leave you short of it. Measure the real suction lift.
A flat diaphragm stretches. The free annulus is 8 mm wide and its inner edge drops 1.5 mm from flat: it elongates by around 1.7 % on average, and a little more near the edges. TPU and rubber take that without trouble. For more stroke, draw an annular fold into the free annulus: the diaphragm flexes at the fold instead of stretching.
As of late 2026, the 385-type 12 V mini diaphragm pumps sold by electronics shops are advertised at 1.5 to 2 L/min (1.2 to 3, depending on the seller), about 3 m of head and 2–3 m of suction, drawing 0.5–0.7 A. Those are seller figures, with no stated test conditions. If all you need is to move water, buying one costs less than printing it. Print your own when you need a shape, a flow or a material you cannot find in a shop.
Printing the diaphragm and the housing
Print the diaphragm in TPU 95A, 0.6–0.8 mm thick (3–4 layers of 0.20 mm), flat on the bed, at 100 % infill with a rectilinear pattern, which crosses the beads from one layer to the next, and a touch of over-extrusion so no pores are left between beads (TPU and flexible filaments). Avoid the concentric pattern: it lays every bead in a ring, and the diaphragm parts between them when it stretches radially. Flat on the bed, the diaphragm bends in Z and stretches in the plane of the layers: that is stance A in Layer orientation for mechanisms, the one that works. The alternative is to cut it from 0.5–1 mm EPDM or silicone sheet, which has no pores.
The rigid plate (a PETG part or a metal washer) is fixed to the diaphragm with a central screw and a washer on the other side. Round its edge (r ≥ 0.5 mm): a sharp edge cuts the diaphragm right on the line where it flexes.
The edge of the diaphragm has a bead: a thicker ring that acts as a gasket when the housing clamps it, with a static squeeze of 15–30 %. Space the screws evenly: at least six, on a Ø50 mm circle. If the bead is TPU, size it with Printed TPU gaskets.
The housing must not weep (Watertight printed parts), and the connections are barbs or fittings (Hose barbs and fittings). Print the chamber's sealing face against the bed or as the last top layer.
Material: PETG for water at room temperature; for hot water or chemicals, see Heat, cold, sunlight and chemicals. If what you pump is meant to be drunk or eaten, read Printing for food contact first: both a printed housing and a printed diaphragm have pores. The general choice is in Which plastic for which mechanism.
When it fails
| Symptom | Cause | Fix |
|---|---|---|
| Gear: turns but does not pump | not primed, or large clearances with a thin liquid | fill it with liquid before starting; close the side clearance with lapping and a shim, or use a diaphragm pump |
| Gear: pumps into an open outlet but loses flow as you raise the tube | leakage across the faces (cube law) | side clearance down to 0.05 mm, a more viscous liquid or less head |
| Gear: binds when you tighten the cover | faces with no clearance, elephant's foot, warped gears | shim gasket, chamfer on the bed face, lap both gears together |
| Gear: noise and vibration | trapped volume, cantilevered shafts | relief groove in the cover; shafts supported in both covers |
| Gear: shaft bores worn oval | radial pressure load on plastic | steel shafts supported in both covers; bushing or bearing in the cover |
| Gear: drips at the shaft | no lip seal, or a scored shaft | lip seal on a smooth steel shaft, or a magnetic coupling |
| Diaphragm: will not prime | large dead volume; column of liquid at the outlet; inlet valve that does not close or needs too much pressure to open | valves next to the chamber, flat chamber; prime with the outlet free or with a bleed valve |
| Diaphragm: flow well below theoretical | leaking valves; shorter stroke from play in the eccentric; diaphragm that balloons instead of pushing | test each valve on its own; remove the play; larger plate |
| Diaphragm: tears at the plate edge or next to the bead | sharp edge; too much stroke for a flat diaphragm | round it off; annular fold; less eccentricity |
| Diaphragm: drips at the housing joint | uneven clamping; bead without squeeze | more screws; 15–30 % squeeze |
How to test it
Test the pump with the liquid it will move and a stopwatch. Measure flow into a measuring jug at zero head. Measure pressure, with water and large clearances, in a clear vertical tube on the outlet: the height at which the liquid stops is Δp/ρg. If you expect more than 1–2 m, and always with oil, use a pressure gauge and a tap or a relief valve, never a blocked outlet: at 0.05 mm per face the water pump goes past 30 m, and 5 bar of oil is about 57 m of column. Measure suction lift by lowering the supply cup a little further each time. Then a few hours in a closed loop, with the liquid dyed so leaks show. Volumetric efficiency is measured flow divided by displacement × speed; note it down for every clearance you try. The cycle rig and the log are in Testing a mechanism before you trust it.
See also
- Check valves and taps: design, cracking pressure and sealing of the diaphragm pump's valves.
- Peristaltic pumps: the pump for dosing, where the liquid touches only the tube.
- Spur gears: the geometry of the pair, undercut and backlash.
- O-ring grooves: the groove for the seal that closes the housing.
