Rectangular Paths and Borders Calculator


Find the area occupied by an inside border, outside border or two perpendicular crossing paths, with an optional cost per square unit.

Use consistent units. Enter numbers without thousands separators. Invalid input clears all results.

请输入数值:

Zero or positive.

结果:

Inputs and results

Choose the matching mode, then read each field label and note. Results use the same length, time, currency or quantity units as the inputs unless a label says otherwise. A negative change means a decrease.

Formula

Inside border = LB-(L-2w)(B-2w). Outside border = (L+2w)(B+2w)-LB. Two perpendicular full-length strips = Lw+Bw-w², subtracting their shared square once. Cost = path area × unit rate.

Worked example

For L=20, B=10 and w=1: inside border area = 200-18×8 = 56. Outside border area = 22×12-200 = 64. Crossing path area = 20+10-1 = 29. At 5 per square unit the crossing paths cost 145.

Limits and edge cases

Rectangle dimensions must be positive; width and rate may be zero. Inside borders cannot extend beyond the centre. Crossing paths are perpendicular strips of equal width running the full rectangle length and breadth. Outside paths leave the original rectangle uncovered. Decimal calculations use floating-point arithmetic; displayed values are rounded to 12 significant digits. This is an educational tool, not a guarantee about investments or physical systems.

FAQ

Why subtract w² for crossing paths?

The central overlap was counted in both strips.

Does the cost include paving thickness?

No. It is area multiplied by the rate you enter; labor, material depth and taxes are not added.

Formula reference

Background mathematics. Explanation and examples on this page are independently written.