Units & sign conventions
PileCalc is unit-agnostic — supply any self-consistent system. Here is how to stay consistent and what every sign means.
PileCalc does not impose a unit system. In the app you simply pick Metric or US and every label, input, and result follows; when you drive the engine directly through the API you supply any self-consistent system and get answers back in it. Either way, the rules below prevent the most common class of mistake in any pile program.
Switching units in the app
The Metric / US switch lives in the app header, next to the theme toggle. Flip it and the whole workspace re-expresses itself — field labels, the values you've entered, the summary numbers, charts, and tables all convert instantly. Your preference is remembered across sessions.
You can't create a mixed-unit model
What each system shows:
| Quantity | Metric | US |
|---|---|---|
| Length / depth / diameter | m | ft |
| Deflection / settlement | mm | in |
| Force / capacity | kN | kip |
| Moment | kN·m | kip·ft |
| Strength / pressure (c, qu, bearing) | kPa | ksf |
| Soil unit weight (γ) | kN/m³ | pcf |
| Subgrade modulus (k) | kN/m³ | pci |
| Steel modulus / yield (E, Fy) | kPa | ksi |
| Bending stiffness (EI) | kN·m² | kip·ft² |
Unit-agnostic by design
Internally the engine carries no hidden unit conversions. If you supply forces in kN and lengths in m, then a stiffness must be in kN·m², a pressure in kN/m² (kPa), and a unit weight in kN/m³ — and deflections come back in m, moments in kN·m, and so on. Supply US customary instead and every output follows suit. This matters most when you call the API directly, where there is no switch to help you.
One system, end to end (when calling the API)
Staying consistent
Inside the app the switch keeps you consistent automatically. The rule only bites when you call the engine through the API, where you must supply a single self-consistent system yourself. The cleanest choices are SI (m, kN, kPa, kN·m, kN/m³, kN·m²) and a kip–foot English system (ft, kip, ksf, kip·ft, kcf, kip·ft²).
Why the app's US labels look friendlier than a strict English system
The water-unit-weight trap
The single most common unit error in axial and drilled-shaft analyses is the water unit weight. Effective vertical stress — which drives both side friction and end bearing — is built by subtracting pore pressure from total stress:
If you work in SI but leave the water unit weight at its US-customary default of 62.4 (pcf), then γ_w dwarfs your kN/m³ soil weights, pore pressure exceeds total stress, and the effective stress collapses to zero — silently zeroing your tip resistance. In SI, the water unit weight must be 9.81 kN/m³.
Set γ_w to match your units
γ_w = 9.81 kN/m³. US customary: γ_w = 62.4 pcf. In the app the Metric / US switch sets and converts this field for you (9.81 kN/m³ ⇄ 62.4 pcf), so the trap is really one for direct API calls — but it's still worth checking first whenever an end-bearing result looks impossibly low.Sign conventions
The engine uses a single, consistent set of conventions:
- Depth is measured downward from the ground surface (or the pile head), positive into the ground. Profiles in the app are drawn with depth increasing downward, the way you read a borehole log.
- Lateral deflection is positive in the direction of the applied lateral load.
- Axial load is compression-positive: a positive axial force pushes down the pile. Uplift capacity is reported as a separate, positive resistance.
- Bending moment and shear follow the beam-column convention of the COM624P formulation. What matters for design is the magnitude and the depth of the peak, both of which the app labels directly.
Sign conventions differ between programs
Depth & geometry
Soil layers are defined by their top and bottom depths and must tile the profile without gaps or overlaps. The bottom of the last layer should reach at least the pile tip. If a pile stands partly above grade (a pier, or a scoured pile), the free length above the ground surface is entered separately and adds cantilever deflection — see the pile inputs.