Plumbing calculators

39 tools

Plumbing Calculators

Plumbing sizing is a chain: fixture load, water pipes, water heater, drains, slope and gas line, from the IPC and IFGC tables.

Water Heater Size CalculatorWater Heater Size CalculatorA water heater size calculator that sizes a storage water heater from your busiest hour, not from a household-size chart. Enter how many showers, baths, dishwasher loads and laundry loads happen in the peak hour, and get the peak-hour demand in gallons, the First-Hour Rating (FHR) to look for on the yellow EnergyGuide label, and the smallest gas, electric and heat-pump tanks that deliver it. Plus the recovery rate of each, so you know how fast the tank reheats after the rush.Tankless Water Heater Size CalculatorTankless Water Heater Size CalculatorA tankless water heater size calculator that sizes a tankless unit from the fixtures that run at the same time and the temperature the water has to rise, not from the number of bathrooms. Enter how many showers, faucets, dishwasher loads and washer loads run together, pick your groundwater temperature, and get the required flow in gallons per minute, the temperature rise, the BTU per hour a gas unit must deliver or the kilowatts an electric unit needs, and the smallest standard unit that covers it.Water Pipe Size CalculatorWater Pipe Size CalculatorA water pipe size calculator that sizes a supply pipe the way the code does it: add up the fixture load in water supply fixture units, convert it to a peak flow in gallons per minute on Hunter's curve, then pick the smallest copper, PEX or CPVC pipe that passes both checks, the velocity cap and the friction budget. Enter the WSFU load, pipe material, developed length and friction budget, and get the pipe size, the velocity and the friction loss, and why the next size down fails.Water Supply Fixture Unit CalculatorWater Supply Fixture Unit CalculatorA water supply fixture unit calculator that totals the water supply fixture unit load of a building and converts it to a peak demand in gallons per minute. Pick the fixtures and how many of each, choose private or public occupancy and flush-tank or flushometer-valve system, and get the total WSFU with its cold and hot split, the Hunter's curve demand in GPM for each, and the design demand with any continuous loads added, plus the pipe size that demand needs.Gas Pipe Size CalculatorGas Pipe Size CalculatorA gas pipe size calculator that sizes a fuel-gas pipe the way the code does it: add up the input ratings of every appliance on the line, measure the longest run from the meter, and read the smallest Schedule 40 pipe that carries the load from IFGC Table 402.4(2). Enter the total load in BTU per hour, the longest run, the gas type and the pipe type, and get the pipe size, the capacity and the spare capacity, plus propane and CSST variants.Drainage Fixture Unit CalculatorDrainage Fixture Unit CalculatorA drainage fixture unit calculator that works out the total drainage fixture unit (DFU) load for a house, an apartment or a small commercial job before you size a single drain. Enter how many of each fixture the drain will serve, water closets, lavatories, bathtubs, showers, kitchen sinks, dishwashers, clothes washers and more, pick the IPC or the UPC, and get the total DFU, the DFU each fixture contributes, and the minimum trap size for every fixture, so the drain pipe you size next is sized from the right number.Drain Pipe Size CalculatorDrain Pipe Size CalculatorA drain pipe size calculator that sizes a sanitary drain from the load it carries. Enter the total drainage fixture units (DFU) on the pipe and the slope you intend to build, and get the smallest pipe that carries the load, as a horizontal branch, as a vertical stack and as a building drain, under IPC Tables 710.1(1) and 710.1(2), with the water-closet minimum and the capacity each size has left.Drain Pipe Slope CalculatorDrain Pipe Slope CalculatorA drain pipe slope calculator that works out the fall a drain run needs before you dig the trench. Enter the pipe size and the length of the run, and get the minimum code slope under IPC Table 704.1, the total fall in inches and feet, the grade as a percentage, and a Manning velocity check that tells you whether the drain actually cleans itself at that slope, plus the steeper slope that reaches the 2 ft/s self-cleaning target if the minimum does not.Plumbing Cost CalculatorPlumbing Cost CalculatorA plumbing cost calculator that prices a plumbing job the way a contractor prices it: labour hours at your hourly rate, fixtures at their allowance, materials at cost, then overhead, then profit. With markup and margin shown side by side so you can see what the job actually earns. Pick a scope (rough-in and trim, whole-house repipe, bathroom addition or a single fixture swap), enter your numbers, and get the job price, the true cost, the profit in dollars and the margin percentage.Vent Pipe Size CalculatorVent Pipe Size CalculatorA vent pipe size calculator that sizes a plumbing vent from the drain it serves, not from a guess. Pick the vent type, individual, branch, common or stack vent, enter the drain size, the fixture load in drainage fixture units and the vent's developed length, and get the minimum vent size under the International Plumbing Code: the half-size rule and the 40 ft upsize for individual and branch vents (IPC 906.2), or the full Table 906.1 lookup for stack vents and vent stacks.Pipe Flow Rate CalculatorPipe Flow Rate CalculatorA pipe flow rate calculator that finds how much water a pipe can carry, in gallons per minute, and what it costs in pressure. Enter the flow, the pipe size and material, and the run length, and get the Hazen-Williams friction loss in psi, the water velocity in feet per second, and a pass/fail verdict against the velocity cap and your pressure budget. Or work backwards from a target velocity or a pressure budget.Pipe Trench Volume CalculatorPipe Trench Volume CalculatorA pipe trench volume calculator that works out how much a pipe trench really involves: how much soil comes out, how much bedding goes under the pipe, how much backfill goes back in, and how much spoil has to be hauled away. Enter the trench length, width and depth, the pipe size and the bedding depth, and get the excavation, the pipe displacement, the bedding and backfill split and the haul-off. In cubic feet and cubic yards, with a waste allowance and a truck count.Expansion Tank CalculatorExpansion Tank CalculatorAn expansion tank calculator that sizes a thermal expansion tank the way the manufacturers size it: first work out how much the water grows when heated, then how much of the tank is free to take it, and divide one by the other. Enter the water heater size, the cold and hot temperatures, and the precharge, system and maximum pressures, and get the expansion volume, the acceptance factor, the minimum tank volume and the next standard tank size. Plus a precharge check against the system pressure.Sump Pump Size CalculatorSump Pump Size CalculatorThis sump pump size calculator sizes the pump from the water that actually arrives, not from a guess at the shelf. Enter the drainage area and the design rainfall, and get the inflow in gallons per minute, the pump size with a 1.5x safety factor, the real capacity at your discharge head, the basin volume and how often the pump will cycle. A pump that is too small floods the basement, and one that is too big short-cycles itself to death.Booster Pump CalculatorBooster Pump CalculatorThis booster pump calculator sizes a booster pump from the pressure you have and the pressure the top fixture needs. Enter the height of the highest fixture, the supply pressure at the street, the residual pressure the fixture needs and the peak flow, and get static head, friction loss, total pressure required, the boost the pump must add, total dynamic head and horsepower. You get the pump that delivers it, not just a pressure number.Water Pressure CalculatorWater Pressure CalculatorThis water pressure calculator finds the pressure at the tap, where it matters, not at the meter, where it is always higher. Enter the supply pressure, how high the fixture sits above the supply, the pipe run and the flow, and get the elevation loss, the friction loss, the pressure that actually arrives and a diagnosis: low, marginal, good or too high, with the fix for each cause.Pump Head CalculatorPump Head CalculatorThis pump head calculator finds the total dynamic head of any pump, well, sump, circulator, transfer or booster, and the duty point to read off the pump curve. Enter the suction lift, the discharge lift, the pipe run, the flow and the discharge pressure, and get static head, friction head, pressure head and velocity head, the TDH in feet and psi, and the horsepower.Friction Loss CalculatorFriction Loss CalculatorThis friction loss calculator finds the friction loss of a pipe run, not just the straight pipe, but the fittings too. Enter the length, the pipe size and material, the flow and the fittings, and get the loss per 100 ft, the straight-pipe loss, the fittings equivalent length and their loss, the total loss in psi and in feet of head, and a velocity check. The fittings on a real run can add a fifth of the loss.Roof Drain CalculatorRoof Drain CalculatorThis roof drain calculator sizes roof drains from the roof and the rain, not from a rule of thumb. Enter the roof area and the rainfall rate for your design storm, pick a leader size, and get the number of drains you need from IPC Table 1106.2, plus the flow in gallons per minute, the area each drain serves and the overflow drainage that has to match it. A 2,000 sq ft roof at 4 inches per hour needs two 3 inch leaders, or one 4 inch leader.Grease Trap CalculatorGrease Trap CalculatorThis grease trap calculator sizes a grease interceptor two ways, and takes the larger answer. The DFU method sizes from the fixture load under IPC Table 1003.3.4.1: a 35 DFU kitchen needs a 1,000-gallon interceptor. The flow-rate method sizes from peak flow and retention time: 25 GPM for 30 minutes is 750 gallons. Both are shown side by side, so you can see which method is driving the answer.Well Volume CalculatorWell Volume CalculatorThis well volume calculator answers how much water is standing in your well, and how long it will last when the pump runs. A 6 inch well with 100 feet of water holds 146.8 gallons, 1.47 gallons per foot of water, and at a 10 gallon-per-minute pump against a 5 gallon-per-minute recovery, the net drawdown is 5 gallons a minute, so the standing water lasts 29.4 minutes before the pump starts sucking air.Water Softener Size CalculatorWater Softener Size CalculatorThis water softener size calculator sizes a water softener from your hardness and your actual water use, not from the number of bedrooms. Enter the hardness in grains per gallon and the gallons your household actually uses each day, and get the grains of hardness the softener must remove daily, the regeneration interval, the salt per year and the smallest size that does the job.Water Usage CalculatorWater Usage CalculatorThis water usage calculator builds your household water use fixture by fixture, instead of quoting a single per-person number: showers, toilets, faucets, laundry and the dishwasher, each with its own flow and its own habits, plus the hot-water share of each and a leak line of its own. A household of four on the defaults uses 158.6 gallons a day, 4,758 gallons a month and $19.03 at $4 per thousand gallons.Rainwater Harvesting CalculatorRainwater Harvesting CalculatorThis rainwater harvesting calculator answers how much rain your roof can actually collect, and whether it will be there in the dry month, month by month instead of as an annual average. Enter the roof area, the annual rainfall, the roof runoff coefficient and the rainfall pattern, and get the gallons each month collects, the wettest and driest months, the months the demand is not met, and the tank size for the driest stretch.Mixing Valve CalculatorMixing Valve CalculatorThis mixing valve calculator blends hot and cold water to a safe temperature, and the arithmetic runs in both directions: given the hot and cold flows, what temperature comes out, and given the temperature you want, how much cold water do you need? This page solves it both ways, and it flags the 120°F anti-scald limit. A 140°F hot supply at 3 GPM mixed with 55°F cold at 2 GPM comes out at 106°F, safe, at 5 GPM total.Hot Water Recirculation Pump CalculatorHot Water Recirculation Pump CalculatorThis recirculation pump calculator sizes a hot water recirculation pump from the heat the loop loses, not from the size of the house. Enter the loop length, the pipe size and whether it is insulated, and get the flow the pump must deliver, the head it must lift against and the wait time it saves. A 100 ft loop of uninsulated 3/4 in copper loses 2,000 BTU an hour and needs 0.4 GPM at a 10°F loop drop and 6 ft of head.Water Meter Size CalculatorWater Meter Size CalculatorThis water meter size calculator sizes the meter from the fixtures it serves, not from bedrooms or a guess, so the meter reads true at peak flow. A home at 30 WSFU has a peak demand of 20 GPM, and the right meter is the 3/4-inch meter rated at 30 GPM, running at 66.7% of its capacity with about 4.4 psi of pressure loss at peak flow. Skip the 5/8-inch meter: it is rated at exactly 20 GPM, so it would run at 100% every time the house peaks.Pipe Insulation CalculatorPipe Insulation CalculatorThis pipe insulation calculator sizes the thickness by the job it has to do, freeze protection, condensation control or hot-water energy saving, so you buy the right thickness instead of the thickest roll. A 100-foot run of 3/4-inch copper carrying 40°F water through 20°F air needs 1 inch of fiberglass: bare it loses 550 BTU an hour, insulated 238, a saving of 56.7%, and the water takes 14.3 hours to freeze instead of 6.2 hours bare. That is a pipe that survives the night instead of bursting before morning.Pipe Heat Loss CalculatorPipe Heat Loss CalculatorThis pipe heat loss calculator shows how much heat your pipes lose and what it costs, so insulation can be judged on payback instead of a guess. A 100-foot run of bare 3/4-inch copper carrying 140°F water through a 65°F room loses 2,060 BTU an hour, 604 watts, and left at temperature all year it is 180.5 therms and $216.60 at $1.20 a therm. Put 1 inch of fiberglass on it and the loss falls to 890 BTU an hour, 78 therms and $93.60, a saving of $123 a year.Expansion Loop CalculatorExpansion Loop CalculatorThis expansion loop calculator works out how much a pipe grows when it heats up and how big a loop it takes to absorb the growth, so the pipe can move instead of breaking a fitting, buckling a run or cracking a wall. A 100-foot run of 3/4-inch copper heated by 100°F grows 1.13 inches, and the loop that absorbs it has 5.4-foot legs, is 2.7 feet wide and takes 13.5 feet of pipe. The same page covers copper, steel, stainless steel, CPVC, PVC and PEX.Valve Cv CalculatorValve Cv CalculatorThis valve Cv calculator sizes a control valve from the flow and the pressure drop you can afford, not from the pipe size, so the valve throttles cleanly instead of cavitating. A globe valve passing 100 GPM with a 10 psi drop needs a Cv of 31.62 and a Kv of 27.35, and the valve to buy is rated at a Cv of about 45.17, so the required Cv sits at 70% of rated. The 10 psi drop sits well below the choked-flow limit of 37.4 psi.Well Pump Size CalculatorWell Pump Size CalculatorThis well pump size calculator sizes the pump from the water the house needs and the height it has to lift it, not from the old pump's horsepower. A house needing 12 GPM from 120 feet down, with 15 feet of friction loss and a 50 psi tank, has a dynamic head of 250.5 feet, a shaft horsepower of 1.17 at 65% efficiency, and the pump to buy is a 1.5 HP submersible. Measure the lift from the pumping water level, not the top of the well.Fire Pump CalculatorFire Pump CalculatorThis fire pump calculator sizes the pump per NFPA 20 from sprinkler demand plus the hose streams, so the system holds pressure at the most demanding sprinkler. A system with a 250 GPM sprinkler demand and a 250 GPM hose allowance, needing 75 psi at the top sprinkler, 30 feet up, with 12 psi of friction, takes a 500 GPM pump at 100 psi. The hose streams are half the rated flow here. A pump sized for the sprinklers alone is half the size it needs.Pump Power CalculatorPump Power CalculatorThis pump power calculator sizes the motor from the flow and the head, then prices the electricity it will use. A centrifugal pump moving 100 GPM against 80 feet of head at 70% efficiency needs 2.89 shaft horsepower, so the motor to buy is a 3 HP motor drawing 2.39 kW. In 2,000 hours a year it uses 4,780 kWh, which costs $717 at $0.15 a kWh. The NPSH available is 20.4 feet, and the required NPSH has to sit below it, or the pump cavitates.Water Hammer CalculatorWater Hammer CalculatorA water hammer calculator that works out the pressure surge when a valve slams shut. Enter the pipe material, diameter and wall thickness, the flow velocity and how fast the valve closes, and get the wave speed, the surge for an instantaneous stop and for your closure, the pressure the pipe sees, and the arrestor size to fit. A 2-inch copper line at 5 feet per second peaks at 194.7 psi, more than double the 80 psi fixture limit, so a size E arrestor goes on the line.Tank Drain Time CalculatorTank Drain Time CalculatorA tank drain time calculator that tells you how long a tank takes to drain, to empty or to the level you need it at. Enter the tank shape and size, outlet diameter, discharge coefficient and start and end levels, and get the drain time by Torricelli's law, the volume, the flow at the start, and both drain times. A 4 ft tank with 5 ft of water empties in 8.9 minutes through a 2-inch outlet, and the last foot takes almost as long as the first four.Well Pressure Tank CalculatorWell Pressure Tank CalculatorA well pressure tank calculator that sizes a well pressure tank from the pump that fills it and the pressures it works between. Enter the pump flow, the cut-in and cut-out pressures and the drawdown you need, and get the tank volume required, the standard tank to buy, the drawdown it actually delivers, and the precharge pressure to set. A 12 GPM pump on a 40/60 switch needs a 52-gallon tank, which delivers only 13.4 usable gallons, and the rest is air.PEX Pipe CalculatorPEX Pipe CalculatorA PEX pipe calculator that sizes PEX pipe from the flow it has to carry, not from the size that was there before. Enter the PEX size and type, length, flow, water temperature and fittings, and get the pressure drop, velocity, water volume in the run, equivalent length of the fittings, and the pressure-drop chart for the size you picked. A 100-foot run of 3/4-inch PEX-A at 6 GPM loses 10.6 psi in total, and the fittings are nearly 40 percent of the loss, the part most sizing ignores.PVC Pipe CalculatorPVC Pipe CalculatorThis PVC pipe calculator turns nominal size, schedule, length and flow into inside diameter, water volume, pipe weight, flow velocity and friction loss, so you size from the bore, not the name. A 100 ft run of 2 in Schedule 40 PVC at 30 GPM holds 17.5 gallons, weighs 64.3 lb empty and 210.3 lb full, flows at 2.86 ft/s and loses 0.67 psi. A 2 in pipe is not 2 in inside, and Schedule 80 carries less water than Schedule 40 of the same name.

What you can calculate with plumbing tools

Water supply, heaters, gas pipe, fixtures and drain sizing, planned. Every calculator on this page shows the formula it uses, adds a waste allowance you can change and works in imperial or metric units. Open any tool below to get a quantity you can order, then use the matching unit converters or browse all construction calculators.

Plumbing calculators: how to plan and order

Plumbing sizing is a chain, and each link uses the load from the one before it. It starts with the fixtures: every fixture is given a water supply fixture unit value, and the total converts to a design flow in gallons per minute, because not every fixture runs at once. That flow sizes the water pipe, the water heater by first-hour rating and the gas pipe by total BTU load. On the drain side, fixtures are counted again as drainage fixture units, which size the branch, stack and building drain, and the pipe is laid at a minimum slope so water carries solids away. The tools on this page walk the chain, so each result feeds the next calculator.

Supply side: fixture units, pipe size and pressure

The supply side starts with the water supply fixture unit calculator, which lists every fixture in the building with its IPC cold, hot and total values and adds them up, then converts the total to a design flow with Hunter's curve. A typical three-bedroom house with two bathrooms lands around 25 to 35 WSFU, which converts to roughly 20 to 25 gallons per minute. The water pipe size calculator takes that flow and tests each pipe size against two checks: velocity, capped at 8 feet per second for cold water and 5 feet per second for hot water and for PEX, and friction loss, calculated with Hazen-Williams for copper, PEX and CPVC at the actual pipe bore. A pipe that fails either check is rejected, and the smallest size that passes both is the answer. The same flow also sets the water heater size: the water heater calculator adds up the gallons used in the busiest hour, showers, dishwasher, laundry, and matches the first-hour rating to gas, electric and heat pump tanks, plus a tankless cross-check in gallons per minute. If the house has gas appliances, the gas pipe size calculator sizes the line from the total BTU load and the longest run, using the IFGC longest-length table, with a propane variant for LP systems.

Drain side: DFU, pipe size, slope and vents

The drain side mirrors the supply side. The drainage fixture unit calculator counts every fixture as a DFU under IPC Table 709.1; a water closet is 3 DFU, a bathtub 2, a lavatory 1, and the DFU total sizes the drain in three steps at once: the horizontal branch, the vertical stack and the building drain to the street, each with its own capacity table in IPC Table 710.1. The drain pipe slope calculator then gives the minimum slope for the pipe size (IPC Table 704.1) and the total fall over the run, plus a Manning velocity check against the 2 feet per second self-cleaning target. Two rules catch more jobs than the tables do: no water closet is permitted on pipe smaller than 3 inches, and pipe size must never decrease in the direction of flow (IPC Section 704.2). The fourth part of the drain is the vent, which keeps traps from siphoning dry. A drain without a vent lets sewer gas into the building, so vent sizing follows the drain it serves and must be confirmed against IPC Table 906.2. All drain work needs a permit and inspection in most jurisdictions, and a licensed plumber should confirm the final sizes against the local code, which may adopt the IPC or the UPC with amendments.

Frequently asked questions

A fixture unit is a relative measure of how much water a plumbing fixture uses, or how much waste it discharges. Water supply fixture units (WSFU) come from IPC Table E103.3(2) and drainage fixture units (DFU) from IPC Table 709.1. A water closet is 3 DFU, a bathtub 2 DFU and a lavatory 1 DFU.

Count the fixture units, convert them to a design flow in gallons per minute with Hunter's curve, then pick the smallest pipe that keeps velocity under 8 ft/s for cold water (5 ft/s for hot and PEX) and friction loss within budget. The water pipe size calculator does both checks for copper, PEX and CPVC.

Under IPC Table 704.1, pipes 2-1/2 inches and smaller need at least 1/4 inch per foot, and pipes 3 inches and larger need at least 1/8 inch per foot. The drain pipe slope calculator also checks the velocity against the 2 ft/s self-cleaning target.

Size by first-hour rating, the gallons used in the busiest hour, not by tank size. A typical family of four needs a first-hour rating of about 65 to 70 gallons, which a 40-gallon gas tank or a 50 to 65-gallon electric tank can cover. The water heater size calculator works it out from your actual fixtures.