---
title: "Farm Tile Drainage Calculator: Spacing, Hump Height, and the Root Rot Trap Most Installers Miss"
canonical: "https://theyieldgrid.com/farm-tile-drainage-calculator/"
model_id: "tyg-808"
model_version: "1.0.0"
last_reviewed: "2026-04-27T19:43:16"
reviewed_by: "Umer Hayiat"
---

# Farm Tile Drainage Calculator: Spacing, Hump Height, and the Root Rot Trap Most Installers Miss

> Canonical calculator: [https://theyieldgrid.com/farm-tile-drainage-calculator/](https://theyieldgrid.com/farm-tile-drainage-calculator/)

## What this calculator does

Home - Free Gardening Calculators & Tools - Farm Tile Drainage Calculator: Spacing, Hump Height, and the Root Rot Trap Most Installers Miss Subsurface tile drainage fails at the midpoint, not at the pipe. Groundwater between two parallel drains does not drop uniformly to the tile level. It forms a parabolic arch, highest at the exact center of the spacing, and that peak, called the water table hump, is what determines whether crops live or suffocate. A drain installation that looks correct on the surface can still hold the water table within inches of the root zone at every spot that is farthest from a pipe. Hooghoudt’s equation exists precisely to calculate where that arch peaks, and whether it drops low enough to protect the root zone.

## Inputs

| Input | ID | Type | Unit | Range or choices | Required |
|---|---|---|---|---|---|
| Soil Hydraulic Conductivity ( K ) [in/hr] | `atds_K` | number |  | 0.001 to | No |
| Depth to Impermeable Layer ( D ) [ft] | `atds_D` | number | ft | 0.1 to | No |
| Desired Tile Depth ( d t ) [ft] | `atds_d` | number | ft | 0.1 to | No |
| Target Min. Water Table Depth ( m ) [ft] | `atds_m` | number | m | 0.01 to | No |

## Outputs

| Output ID | Default state |
|---|---|
| `atds_K_err` |  |
| `atds_D_err` |  |
| `atds_d_err` |  |
| `atds_m_err` |  |
| `atds_results` |  |

## Formula and method

The iterative equivalent depth correction accounts for radial flow near the pipe, delivering precise midpoint hump prediction that simple lookup tables miss. Show the calculation steps Plain-Language Formula Walkthrough Hooghoudt’s equation models the steady-state water table profile between two parallel subsurface drains as a parabola. The peak of that parabola at the midpoint between drains equals the hydraulic head h. The equation solves for the spacing L that produces a head equal to (tile depth minus target water table depth). The governing equation is: L² = (8 · K · d_e · h + 4 · K · h²) / q Where: L = tile spacing (ft or m), the value being solved for K = saturated hydraulic conductivity of the soil profile (in/hr or m/day) d_e = equivalent depth (ft or m), the Hooghoudt correction for radial convergence near the pipe h = hydraulic head (ft or m) = tile depth minus target water table depth q = drainage coefficient (in/hr or m/day) = K / 400 per USDA design standard Step 1: Compute h. Subtract the target water table depth from the tile depth. This is the maximum allowable height of the water table above the drain centerline at the midpoint between pipes. Step 2: Compute q. Divide K by 400. This is the design drainage rate: the rate at which the soil must remove water to hold the water table at the target depth under continuous rainfall at that same rate. Step 3: Estimate d_e (initial). Use the closed-form approximation d_e = D multiplied by dt, divided by (D plus dt). This is only a first estimate because d_e depends on L, which is not yet known. Step 4: Solve for L (first iteration). Insert d_e into the Hooghoudt formula and solve for L by taking the square root of the right side. Step 5: Iterate. Use the new L to recompute d_e using Bouwer and van Schilfgaarde’s refined formula (accounting for the ratio D/L and the drain pipe radius). Recompute L. Repeat 6 to 8 times until L changes by less than 0.001 ft between iterations. This calculator completes 8 iterations for numerical stability. Step 6: Check midpoint hump. The water table depth at mid-field is approximately dt minus the square root of [q multiplied by (L/2) squared, divided by (K times d_e)]. When computed spacing L is used directly, this equals the target m. The check becomes critical when L is rounded up to a larger practical spacing. Rounding rule: Always round L down to the nearest practical spacing (commonly in increments of 10 ft or 5 m). Rounding up creates a wider spacing than computed, which raises the hump above the target. Assumptions and Limits Uniform soil profile: K is assumed identical above and below the drain centerline. Layered soils with different K values require separate calculations for each zone using weighted K methods. Steady-state drainage: The equation assumes rainfall is entering the soil at the same rate as drainage is removing it. It does not model the time required to drain a flooded field after a single large rain event. Flat topography: Hooghoudt’s equation applies to level fields. On slopes, flow vectors are not purely horizontal, and spacing calculations require slope correction factors. Drain radius assumption: The calculator uses a default drain pipe radius of 0.164 ft (0.05 m), corresponding to standard 4-inch corrugated perforated pipe. Larger pipe sizes affect d_e slightly. Valid spacing range: Results are most reliable for spacings between 30 and 300 ft (10 and 90 m). Beyond 400 ft, natural field variability in K and D typically dominates, and computed spacing understates real-world hump height. Grade requirement not enforced: The calculator does not verify that the site has adequate grade for gravity flow. A minimum of 0.1% grade (1 ft per 1000 ft) is required; 0.5% is recommended. Without sufficient grade, pipes do not drain freely and the calculation is invalid. q = K / 400 is the USDA standard but not universal: In regions with high-intensity short-duration rainfall, some drainage engineers use q = K / 300 for a more conservative result. This produces a narrower computed spacing. Single-outlet assumption: The formula assumes each tile run drains freely at its outlet. Restrictions at the outlet, such as a ditch that backs up during peak flow, reduce drainage efficiency and require separate hydraulic analysis. Hooghoudt’s equation models the steady-state water table profile between two parallel subsurface drains as a parabola. The peak of that parabola at the midpoint between drains equals the hydraulic head h. The equation solves for the spacing L that produces a head equal to (tile depth minus target water table depth). The governing equation is: L² = (8 · K · d_e · h + 4 · K · h²) / q Where: L = tile spacing (ft or m), the value being solved for K = saturated hydraulic conductivity of the soil profile (in/hr or m/day) d_e = equivalent depth (ft or m), the Hooghoudt correction for radial convergence near the pipe h = hydraulic head (ft or m) = tile depth minus target water table depth q = drainage coefficient (in/hr or m/day) = K / 400 per USDA design standard Step 1: Compute h. Subtract the target water table depth from the tile depth. This is the maximum allowable height of the water table above the drain centerline at the midpoint between pipes. Step 2: Compute q. Divide K by 400. This is the design drainage rate: the rate at which the soil must remove water to hold the water table at the target depth under continuous rainfall at that same rate. Step 3: Estimate d_e (initial). Use the closed-form approximation d_e = D multiplied by dt, divided by (D plus dt). This is only a first estimate because d_e depends on L, which is not yet known. Step 4: Solve for L (first iteration). Insert d_e into the Hooghoudt formula and solve for L by taking the square root of the right side. Step 5: Iterate. Use the new L to recompute d_e using Bouwer and van Schilfgaarde’s refined formula (accounting for the ratio D/L and the drain pipe radius). Recompute L. Repeat 6 to 8 times until L changes by less than 0.001 ft between iterations. This calculator completes 8 iterations for numerical stability. Step 6: Check midpoint hump. The water table depth at mid-field is approximately dt minus the square root of [q multiplied by (L/2) squared, divided by (K times d_e)]. When computed spacing L is used directly, this equals the target m. The check becomes critical when L is rounded up to a larger practical spacing. Rounding rule: Always round L down to the nearest practical spacing (commonly in increments of 10 ft or 5 m). Rounding up creates a wider spacing than computed, which raises the hump above the target.

## Verified worked examples

### Example 1: Sandy Loam Field, Imperial Units

Hydraulic Conductivity (K): 1.0 in/hr Depth to Impermeable Layer (D): 8 ft Tile Depth: 4 ft Target Water Table Depth (m): 1.5 ft Hydraulic head (h): 4.0 minus 1.5 = 2.5 ft Equivalent depth (d_e): 8 times 4 divided by (8 plus 4) = 2.67 ft (iterative result: 2.69 ft) Drainage coefficient (q): 1.0 divided by 400 = 0.0025 in/hr L squared: (8 times 1.0 times 2.69 times 2.5 plus 4 times 1.0 times 6.25) divided by 0.0025 L squared: (53.8 plus 25.0) divided by 0.0025 = 31,520 Result: Tile spacing L = 177 ft. Sandy loam soils in well-drained glacial till commonly support wide spacings of 150 to 200 ft. At 177 ft, the water table hump is predicted to remain at the 1.5 ft target. A practical installation would round down to 160 or 170 ft to build in margin against variability in K across the field.

### Example 2: Heavy Clay Loam, Root Rot Risk Scenario, Imperial Units

Hydraulic Conductivity (K): 0.08 in/hr Depth to Impermeable Layer (D): 6 ft Tile Depth: 3.5 ft Target Water Table Depth (m): 1.5 ft Hydraulic head (h): 3.5 minus 1.5 = 2.0 ft Equivalent depth (d_e): 6 times 3.5 divided by (6 plus 3.5) = 2.21 ft Drainage coefficient (q): 0.08 divided by 400 = 0.0002 in/hr L squared: (8 times 0.08 times 2.21 times 2.0 plus 4 times 0.08 times 4.0) divided by 0.0002 L squared: (2.83 plus 1.28) divided by 0.0002 = 20,550 Result: Tile spacing L = 143 ft. This is where the root rot trap closes. A contractor who installs drains at 100 ft “to save pipe” produces hump depths that comfortably protect roots. One who spaces at 200 ft to cut costs in clay loam leaves the water table within 6 to 10 inches of the surface at every mid-field point. This calculation confirms the maximum; anything beyond 143 ft in these conditions degrades into the marginal or waterlogged zone.

### Example 3: Silt Loam, Metric Units

Hydraulic Conductivity (K): 0.05 m/day Depth to Impermeable Layer (D): 2.5 m Tile Depth: 1.2 m Target Water Table Depth (m): 0.45 m Hydraulic head (h): 1.2 minus 0.45 = 0.75 m Equivalent depth (d_e): 2.5 times 1.2 divided by (2.5 plus 1.2) = 0.81 m Drainage coefficient (q): 0.05 divided by 400 = 0.000125 m/day L squared: (8 times 0.05 times 0.81 times 0.75 plus 4 times 0.05 times 0.5625) divided by 0.000125 L squared: (0.243 plus 0.1125) divided by 0.000125 = 2,844 Result: Tile spacing L = 53 m. Silt loam soils with a shallow restrictive layer require closer spacing than most operators expect. At 53 m spacing with a 1.2 m tile depth, the design just meets the 0.45 m root protection standard. Increasing tile depth to 1.5 m on the same site expands the feasible spacing considerably, which is why deeper installation often pays for itself in pipe savings on silt loam fields.

## Assumptions

The iterative equivalent depth correction accounts for radial flow near the pipe, delivering precise midpoint hump prediction that simple lookup tables miss. Show the calculation steps Plain-Language Formula Walkthrough Hooghoudt’s equation models the steady-state water table profile between two parallel subsurface drains as a parabola. The peak of that parabola at the midpoint between drains equals the hydraulic head h. The equation solves for the spacing L that produces a head equal to (tile depth minus target water table depth). The governing equation is: L² = (8 · K · d_e · h + 4 · K · h²) / q Where: L = tile spacing (ft or m), the value being solved for K = saturated hydraulic conductivity of the soil profile (in/hr or m/day) d_e = equivalent depth (ft or m), the Hooghoudt correction for radial convergence near the pipe h = hydraulic head (ft or m) = tile depth minus target water table depth q = drainage coefficient (in/hr or m/day) = K / 400 per USDA design standard Step 1: Compute h. Subtract the target water table depth from the tile depth. This is the maximum allowable height of the water table above the drain centerline at the midpoint between pipes. Step 2: Compute q. Divide K by 400. This is the design drainage rate: the rate at which the soil must remove water to hold the water table at the target depth under continuous rainfall at that same rate. Step 3: Estimate d_e (initial). Use the closed-form approximation d_e = D multiplied by dt, divided by (D plus dt). This is only a first estimate because d_e depends on L, which is not yet known. Step 4: Solve for L (first iteration). Insert d_e into the Hooghoudt formula and solve for L by taking the square root of the right side. Step 5: Iterate. Use the new L to recompute d_e using Bouwer and van Schilfgaarde’s refined formula (accounting for the ratio D/L and the drain pipe radius). Recompute L. Repeat 6 to 8 times until L changes by less than 0.001 ft between iterations. This calculator completes 8 iterations for numerical stability. Step 6: Check midpoint hump. The water table depth at mid-field is approximately dt minus the square root of [q multiplied by (L/2) squared, divided by (K times d_e)]. When computed spacing L is used directly, this equals the target m. The check becomes critical when L is rounded up to a larger practical spacing. Rounding rule: Always round L down to the nearest practical spacing (commonly in increments of 10 ft or 5 m). Rounding up creates a wider spacing than computed, which raises the hump above the target. Assumptions and Limits Uniform soil profile: K is assumed identical above and below the drain centerline. Layered soils with different K values require separate calculations for each zone using weighted K methods. Steady-state drainage: The equation assumes rainfall is entering the soil at the same rate as drainage is removing it. It does not model the time required to drain a flooded field after a single large rain event. Flat topography: Hooghoudt’s equation applies to level fields. On slopes, flow vectors are not purely horizontal, and spacing calculations require slope correction factors. Drain radius assumption: The calculator uses a default drain pipe radius of 0.164 ft (0.05 m), corresponding to standard 4-inch corrugated perforated pipe. Larger pipe sizes affect d_e slightly. Valid spacing range: Results are most reliable for spacings between 30 and 300 ft (10 and 90 m). Beyond 400 ft, natural field variability in K and D typically dominates, and computed spacing understates real-world hump height. Grade requirement not enforced: The calculator does not verify that the site has adequate grade for gravity flow. A minimum of 0.1% grade (1 ft per 1000 ft) is required; 0.5% is recommended. Without sufficient grade, pipes do not drain freely and the calculation is invalid. q = K / 400 is the USDA standard but not universal: In regions with high-intensity short-duration rainfall, some drainage engineers use q = K / 300 for a more conservative result. This produces a narrower computed spacing. Single-outlet assumption: The formula assumes each tile run drains freely at its outlet. Restrictions at the outlet, such as a ditch that backs up during peak flow, reduce drainage efficiency and require separate hydraulic analysis. Uniform soil profile: K is assumed identical above and below the drain centerline. Layered soils with different K values require separate calculations for each zone using weighted K methods. Steady-state drainage: The equation assumes rainfall is entering the soil at the same rate as drainage is removing it. It does not model the time required to drain a flooded field after a single large rain event. Flat topography: Hooghoudt’s equation applies to level fields. On slopes, flow vectors are not purely horizontal, and spacing calculations require slope correction factors. Drain radius assumption: The calculator uses a default drain pipe radius of 0.164 ft (0.05 m), corresponding to standard 4-inch corrugated perforated pipe. Larger pipe sizes affect d_e slightly. Valid spacing range: Results are most reliable for spacings between 30 and 300 ft (10 and 90 m). Beyond 400 ft, natural field variability in K and D typically dominates, and computed spacing understates real-world hump height. Grade requirement not enforced: The calculator does not verify that the site has adequate grade for gravity flow. A minimum of 0.1% grade (1 ft per 1000 ft) is required; 0.5% is recommended. Without sufficient grade, pipes do not drain freely and the calculation is invalid. q = K / 400 is the USDA standard but not universal: In regions with high-intensity short-duration rainfall, some drainage engineers use q = K / 300 for a more conservative result. This produces a narrower computed spacing. Single-outlet assumption: The formula assumes each tile run drains freely at its outlet. Restrictions at the outlet, such as a ditch that backs up during peak flow, reduce drainage efficiency and require separate hydraulic analysis. Critical Warnings The water table hump is not intuitive. Between two drains, the water table forms a parabolic arch that peaks at the exact midpoint. Crops planted at that midpoint experience the shallowest water table on the field. A drain system that appears functional at the pipe locations can still produce waterlogged roots at every mid-row point. This failure mode is the primary cause of yield loss on installed tile systems where spacing was chosen by rule of thumb rather than calculation. Rounding up is dangerous in heavy soils. Computed spacings in clay and clay loam soils often fall between standard intervals. Rounding from a computed 143 ft up to 160 ft moves the water table hump from the safe zone into marginal or waterlogged status. In low-K soils, always round down. K values from soil surveys are averages, not guarantees. NRCS Web Soil Survey provides K ranges, not single values. Using the upper end of a soil’s K range produces an optimistic (wider) spacing estimate. For design, use the lower end of the mapped K range or conduct in-field auger-hole permeability tests. The hump does not dry out uniformly. After a drainage event, the midpoint between drains is the last location to recover. This means the lag from saturation to plantable field conditions is longest at the exact spot where the hump peaked. Measured trafficability recovery does not reflect what is happening in the root zone at mid-row. Minimum Standards Water table depth at mid-field: at least 1.5 ft (0.45 m) below the soil surface for corn and soybeans under design rainfall conditions, per extension drainage engineering guidelines. Pipe grade: a minimum of 0.1% (1 ft per 1,000 ft run) for gravity drainage to remain functional; 0.5% grade is the common design target for reliable flow. Outlet protection: tile outlets must discharge freely into an open ditch or collector main with no backpressure; a restricted or submerged outlet negates the design spacing entirely. Safety factor in clay soils: apply a 15 to 25% reduction to computed L in heavy clay or layered soils where K is uncertain, or where soil variability across the field is high. Competitor Trap: Most online tile spacing resources provide simple lookup tables that list “recommended spacing by soil texture” without computing the water table hump height at mid-field. A table that says “install drains at 100 ft in clay loam” may be correct for one combination of tile depth and impermeable layer depth, and wildly wrong for another. The only way to know whether a proposed spacing is safe for a specific site is to run the Hooghoudt calculation with site-measured inputs. Texture-based tables are rules of thumb, not design outputs. Using them without verification is how a well-intentioned tile installation produces chronic root zone saturation at every point that is farthest from a pipe. Related drainage systems that interact with subsurface tile networks include surface inlets and collector mains. The French drain calculator covers surface-to-subsurface drainage transitions, while a sump pump sizing tool helps when tile outlets discharge into a collection basin rather than a free-flowing ditch. Water table depth at mid-field: at least 1.5 ft (0.45 m) below the soil surface for corn and soybeans under design rainfall conditions, per extension drainage engineering guidelines. Pipe grade: a minimum of 0.1% (1 ft per 1,000 ft run) for gravity drainage to remain functional; 0.5% grade is the common design target for reliable flow. Outlet protection: tile outlets must discharge freely into an open ditch or collector main with no backpressure; a restricted or submerged outlet negates the design spacing entirely. Safety factor in clay soils: apply a 15 to 25% reduction to computed L in heavy clay or layered soils where K is uncertain, or where soil variability across the field is high. Competitor Trap: Most online tile spacing resources provide simple lookup tables that list “recommended spacing by soil texture” without computing the water table hump height at mid-field. A table that says “install drains at 100 ft in clay loam” may be correct for one combination of tile depth and impermeable layer depth, and wildly wrong for another. The only way to know whether a proposed spacing is safe for a specific site is to run the Hooghoudt calculation with site-measured inputs. Texture-based tables are rules of thumb, not design outputs. Using them without verification is how a well-intentioned tile installation produces chronic root zone saturation at every point that is farthest from a pipe. Related drainage systems that interact with subsurface tile networks include surface inlets and collector mains. The French drain calculator covers surface-to-subsurface drainage transitions, while a sump pump sizing tool helps when tile outlets discharge into a collection basin rather than a free-flowing ditch.

## Limitations and safety

Uniform soil profile: K is assumed identical above and below the drain centerline. Layered soils with different K values require separate calculations for each zone using weighted K methods. Steady-state drainage: The equation assumes rainfall is entering the soil at the same rate as drainage is removing it. It does not model the time required to drain a flooded field after a single large rain event. Flat topography: Hooghoudt’s equation applies to level fields. On slopes, flow vectors are not purely horizontal, and spacing calculations require slope correction factors. Drain radius assumption: The calculator uses a default drain pipe radius of 0.164 ft (0.05 m), corresponding to standard 4-inch corrugated perforated pipe. Larger pipe sizes affect d_e slightly. Valid spacing range: Results are most reliable for spacings between 30 and 300 ft (10 and 90 m). Beyond 400 ft, natural field variability in K and D typically dominates, and computed spacing understates real-world hump height. Grade requirement not enforced: The calculator does not verify that the site has adequate grade for gravity flow. A minimum of 0.1% grade (1 ft per 1000 ft) is required; 0.5% is recommended. Without sufficient grade, pipes do not drain freely and the calculation is invalid. q = K / 400 is the USDA standard but not universal: In regions with high-intensity short-duration rainfall, some drainage engineers use q = K / 300 for a more conservative result. This produces a narrower computed spacing. Single-outlet assumption: The formula assumes each tile run drains freely at its outlet. Restrictions at the outlet, such as a ditch that backs up during peak flow, reduce drainage efficiency and require separate hydraulic analysis. Critical Warnings The water table hump is not intuitive. Between two drains, the water table forms a parabolic arch that peaks at the exact midpoint. Crops planted at that midpoint experience the shallowest water table on the field. A drain system that appears functional at the pipe locations can still produce waterlogged roots at every mid-row point. This failure mode is the primary cause of yield loss on installed tile systems where spacing was chosen by rule of thumb rather than calculation. Rounding up is dangerous in heavy soils. Computed spacings in clay and clay loam soils often fall between standard intervals. Rounding from a computed 143 ft up to 160 ft moves the water table hump from the safe zone into marginal or waterlogged status. In low-K soils, always round down. K values from soil surveys are averages, not guarantees. NRCS Web Soil Survey provides K ranges, not single values. Using the upper end of a soil’s K range produces an optimistic (wider) spacing estimate. For design, use the lower end of the mapped K range or conduct in-field auger-hole permeability tests. The hump does not dry out uniformly. After a drainage event, the midpoint between drains is the last location to recover. This means the lag from saturation to plantable field conditions is longest at the exact spot where the hump peaked. Measured trafficability recovery does not reflect what is happening in the root zone at mid-row. Minimum Standards Water table depth at mid-field: at least 1.5 ft (0.45 m) below the soil surface for corn and soybeans under design rainfall conditions, per extension drainage engineering guidelines. Pipe grade: a minimum of 0.1% (1 ft per 1,000 ft run) for gravity drainage to remain functional; 0.5% grade is the common design target for reliable flow. Outlet protection: tile outlets must discharge freely into an open ditch or collector main with no backpressure; a restricted or submerged outlet negates the design spacing entirely. Safety factor in clay soils: apply a 15 to 25% reduction to computed L in heavy clay or layered soils where K is uncertain, or where soil variability across the field is high. Competitor Trap: Most online tile spacing resources provide simple lookup tables that list “recommended spacing by soil texture” without computing the water table hump height at mid-field. A table that says “install drains at 100 ft in clay loam” may be correct for one combination of tile depth and impermeable layer depth, and wildly wrong for another. The only way to know whether a proposed spacing is safe for a specific site is to run the Hooghoudt calculation with site-measured inputs. Texture-based tables are rules of thumb, not design outputs. Using them without verification is how a well-intentioned tile installation produces chronic root zone saturation at every point that is farthest from a pipe. Related drainage systems that interact with subsurface tile networks include surface inlets and collector mains. The French drain calculator covers surface-to-subsurface drainage transitions, while a sump pump sizing tool helps when tile outlets discharge into a collection basin rather than a free-flowing ditch.

## Related calculators

- [Calculators & Tools](https://theyieldgrid.com/category/garden-calculators/)
- [soil infiltration rate calculator](https://theyieldgrid.com/soil-infiltration-rate-calculator/)
- [field capacity and soil moisture calculator](https://theyieldgrid.com/field-capacity-soil-moisture-calculator/)
- [French drain calculator](https://theyieldgrid.com/french-drain-calculator/)
- [sump pump sizing tool](https://theyieldgrid.com/sump-pump-calculator/)
- [Manning’s equation calculator](https://theyieldgrid.com/mannings-equation-calculator/)
- [pipe volume calculator](https://theyieldgrid.com/pipe-volume-calculator/)
- [evapotranspiration calculator](https://theyieldgrid.com/evapotranspiration-calculator/)
- [rainwater harvesting calculator](https://theyieldgrid.com/rainwater-harvesting-calculator/)

## Provenance

- Model ID: `tyg-808`
- Model version: `1.0.0`
- Reviewed by: Umer Hayiat
- Page modified: 2026-04-27T19:43:16
- Runtime SHA-256: `b44ba04e5a2e658491a4c6c4bc1416a8cab94bf7ee9db2aa5274af46b3e6969a`

This Markdown document is a machine-readable mirror. The canonical interactive calculator is the HTML page linked above.
