← All blog posts

Quadratic Equation Solver for homeowners and DIYers

WhiteUI · A plain-English guide to the Quadratic Equation Solver

Quadratics show up in home jobs whenever an area is involved: a bed, a room, a plot. The Quadratic Equation Solver turns the measurements into numbers you can build with.

Worked example — a garden bed

You want a bed 3 m longer than it is wide, with an area of 40 m². Call the width x, so the length is x + 3. Area is width × length, so x(x + 3) = 40, which expands to x² + 3x − 40 = 0. The discriminant is 9 + 160 = 169, and √169 = 13, so x = (−3 + 13) ÷ 2 = 5. The bed is 5 m wide and 8 m long — and 5 × 8 = 40, so it checks out.

x² + 3x − 40 = 0
D = 9 + 160 = 169, √D = 13
x = (−3 + 13) ÷ 2 = 5 m; length = 5 + 3 = 8 m
The garden bed: 5 m by 8 mlength = x + 3 = 8 mwidth = x = 5 mArea 40 m²5 × 8 = 40x² + 3x − 40 = 0 gives x = 5 m
The bed is 5 m wide and 8 m long: 5 × 8 = 40 m², exactly the area wanted.

A second example — a fenced plot

A plot is 4 m longer than it is wide, with an area of 60 m². That gives x² + 4x − 60 = 0. The discriminant is 16 + 240 = 256, √256 = 16, and x = (−4 + 16) ÷ 2 = 6. The plot is 6 m wide and 10 m long — and 6 × 10 = 60.

x² + 4x − 60 = 0
D = 16 + 240 = 256, √D = 16
x = (−4 + 16) ÷ 2 = 6 m; length = 6 + 4 = 10 m

The mistake to avoid

Keeping the negative root as an answer. The garden equation also gives x = −8, which is a real root of x² + 3x − 40 = 0 — but a width of −8 m cannot exist. Always ask which root fits the real situation, and drop the one that does not.

Solver or trial and error — which is quicker on site?

With a tape measure in hand, the temptation is to guess: try a width of 5 m, a length of 7 m, multiply, and see if you land on the area you want. For a round target that works, but each wrong guess costs another round of measuring, and a target like 48 m² takes several tries. The solver skips the guessing: you put in the relationship between the sides and the area, and it gives the exact width in one step. Take a courtyard that is 2 m longer than it is wide, with an area of 48 m². Call the width x, so the length is x + 2, and x(x + 2) = 48 gives x² + 2x − 48 = 0. The discriminant is 4 + 192 = 196, √196 = 14, and x = (−2 + 14) ÷ 2 = 6. The courtyard is 6 m wide and 8 m long — and 6 × 8 = 48, so it checks out. No measuring twice, no cutting a tile or a plank to the wrong size.

Trial and error still has a place: when you are standing in the garden and only need a rough size, a quick guess is fine. But once you are buying material — tiles, fencing, soil by the bag — use the exact number. A width that is half a metre out can mean a whole extra row of tiles.

Check with the right side, not the same side twice

Once you have the width, the check has to use both sides. In the courtyard above, the width is 6 m and the length is x + 2, which is 8 m — so the check is 6 × 8 = 48. A common slip is to multiply the width by itself instead: 6 × 6 = 36, which looks wrong and sends you back to re-solve an equation that was right all along. The length is always the width plus the extra metres from the start of the problem, so write both numbers down — “width 6 m, length 8 m” — before you multiply. The same slip bites in feet: a 6 ft width and an 8 ft length is 48 sq ft, not 36, and the check is identical as long as you keep one unit all the way through.

Frequently asked questions

How wide is a bed 8 m long with area 40 m²?

5 m: x(x + 3) = 40 gives x = 5.

Why does the solver give a negative root too?

The equation has two roots, 5 and −8. Only 5 is a length, so the other is dropped for the real job.

Can I use this for a room or a plot?

Yes — any rectangle where you know the area and how the sides relate. Area = length × width turns into a quadratic.

What if my numbers are in feet?

The maths is the same; just keep one unit all the way through.

More guides on the Quadratic Equation Solver

Try it yourself

Solve a quadratic equation, see the discriminant and both roots — free, in your browser.

Open the Quadratic Equation Solver