← All tools

BUILDING CALCULATORS / FOUNDATIONS

Foundation depth & distance calculator

Explore a 45° line from the nearest bottom corner of a proposed foundation to a nearby drain or existing foundation. Enter two measurements to calculate the third.

A geometry check, not a foundation specification. This tool does not establish a safe or compliant depth, assess soil or check whether excavation could undermine a structure. Confirm the design with your structural engineer and building control before digging. Drainage approval may also be needed.

01 / YOUR MEASUREMENTS

Measure vertically down from the same ground datum for both depths. Drain invert means the inside bottom of the pipe, not the cover.

From the nearest foundation edge to the nearest edge of the drain or existing foundation, not its centre.

Measurements stay in your browser.

02 / THE GEOMETRY

Ready to calculate

Enter your measurements and select Calculate.

Foundation and nearby feature cross-sectionCalculate to see a diagram of your measurements.

Cross-section: downward depths are positive. The 45° line uses equal horizontal and vertical scales. Feature widths and pipe diameter are illustrative.

UNDERSTAND THE ANSWER

How the 45° calculation works

At 45°, a line drops one unit vertically for every unit it travels horizontally. Starting at the nearest bottom corner of the proposed foundation, the line reaches a depth of foundation depth + horizontal distance at the nearby feature.

Vertical difference = foundation depth + distance − reference depth
  • Positive: the projected line is below the reference level.
  • Zero: the line meets the reference level exactly. It is not below it.
  • Negative: the line is above the reference level.

To find the boundary foundation depth, subtract distance from reference depth. To find the boundary distance, subtract foundation depth from reference depth. A negative boundary means that every non-negative value already places the line below the reference level; it does not mean a real foundation can be built at zero depth.

A worked example

A drain invert is 1.50 m below the datum. The proposed foundation is 0.90 m deep and its nearest edge is 0.80 m from the drain. The line reaches 0.90 + 0.80 = 1.70 m, which is 0.20 m below the drain invert. That satisfies this geometric condition only. It does not determine whether that foundation design is suitable.

Before you use the result on site

Confirm the levels

Sloping ground needs a common level datum. Pipe cover depth, invert depth and trench-bottom depth are different measurements. Confirm which level your designer requires.

Check the ground

Soil, trees, nearby structures, loading and excavation sequence can change the design. This tool does not calculate bearing capacity, settlement or ground movement.

Check the drain

Establish its position, ownership and condition. A public sewer may need the sewerage company's agreement. A geometric result is not permission to build near or over it.

Questions about foundations near drains

Does a positive result mean the foundation is safe?

No. It only describes where the specified 45° line passes. UK guidance may require foundations to reach at least drain invert or trench depth, even when this simple calculation gives a shallower result. Obtain a site-specific design.

Can I use this for an existing foundation?

Select the existing-foundation option and enter its base depth. The geometry is the same, but the calculator cannot assess undermining, the existing structure's load, excavation support or a safe construction sequence.

Why is the answer a boundary rather than an approved minimum?

At the calculated boundary the line touches the reference level. To be strictly below it requires a greater depth or distance. An appropriate construction allowance must come from your designer; this tool does not invent one.

Can I use millimetres?

Yes. Changing units converts the measurements already entered. Keep both depths measured from the same datum and use the clear horizontal gap, not a diagonal measurement.

Guidance to read alongside this tool

The Planning Portal foundation guidance explains why nearby drainage and ground conditions affect foundations. The LABC Warranty foundation guidance (PDF) provides further design context. Requirements depend on your project and location; this calculator is not a substitute for those checks.