Checking two cuboid dimensions from their sum and product
With one edge of a cuboid known, its volume gives the product of the other two edges and its surface area gives their sum. A quadratic equation then returns both.
Two totals, two unknowns
A cuboid has edges a, b and c, a volume of abc and a total surface area of 2(ab + bc + ca). If you know a together with the volume V and the surface area S, you have two equations for the two unknown edges. The unknowns appear only through their product and their sum, and that makes the problem solvable by hand. Dividing the volume by a gives the product bc. Substituting into the surface formula and isolating b + c gives their sum. Knowing the sum and product of two numbers is exactly the information in a quadratic equation, which is the bridge to the final step.
Getting the product from the volume
In the worked case, the known edge is 3 and the volume is 60. Dividing, bc = 60 / 3 = 20. The units are consistent when the volume is in cubic units and the edge in the matching linear unit, giving a product in square units. This step uses nothing else about the shape, so it holds for any cuboid. If the division does not come out cleanly, the problem may still be valid, since edges need not be whole numbers. Here the product is exactly 20, and that suggests integer edges such as 4 and 5, a guess the later steps confirm. When the product is not a whole number, as with a volume of 50 and a known edge of 3, the other edges are not integers either, and the quadratic gives decimals. Keep the fraction 50/3 unrounded until the last step so that the sum and product stay consistent with each other.
Getting the sum from the surface
The total surface is 94, so half of it is 47, which equals ab + bc + ca. Group the terms as a(b + c) + bc. With a = 3 and bc = 20, this reads 3(b + c) + 20 = 47, so 3(b + c) = 27 and b + c = 9. Halving the surface first is a step that is easy to forget: skipping it gives 94 = 3(b + c) + 20 and a sum of about 24.7, which is wrong. The sum 9 and the product 20 now describe the two unknown edges completely, apart from their order. The general formula for the sum is (S/2 − bc) / a, which here is (47 − 20) / 3. Writing it once as a formula lets you reuse it for a new box by changing only the three givens, and it avoids repeating the grouping argument each time.
Turning the sum and product into a quadratic
If two numbers have sum s and product p, they are the roots of x² − sx + p = 0. Here that is x² − 9x + 20 = 0. The quadratic equation calculator with a = 1, b = −9 and c = 20 returns the roots 4 and 5. They satisfy the check by sum, 4 + 5 = 9, and by product, 4 × 5 = 20. The factorization (x − 4)(x − 5) also shows them at once. The method works for any sum and product, whether or not the roots are whole numbers, and the calculator handles decimals and irrational roots in the same way.
Checking the cuboid forward
With edges 3, 4 and 5, the cuboid calculator returns volume 60 and surface 94, the two totals you started with. That forward check confirms the entire chain, from the division through the quadratic. Because b and c only enter symmetrically, it makes no difference which root you call b and which c. Swapping them describes the same box turned around. If the forward volume or surface differs from the givens, return to the sum and product, since an arithmetic slip in either one will be caught here.
Cuboid with a known edge of 2
Take a known edge of 2, a volume of 48 and a surface of 88. The product of the other two edges is 48 / 2 = 24. Half the surface is 44, so 2(b + c) + 24 = 44, giving b + c = 10. The quadratic is x² − 10x + 24 = 0, with roots 4 and 6. The cuboid with edges 2, 4 and 6 has volume 48 and surface 2 × (8 + 24 + 12) = 88. Notice that the known edge was the smallest here, but the method does not care about the order. Any one of the three edges can serve as the known one. Starting from edge 4 instead, the product of the others is 12 and half the surface gives 4(b + c) + 12 = 44, so b + c = 8, and the roots of x² − 8x + 12 are 2 and 6. The same box comes back, which is a fair test that the method does not depend on the edge you happened to measure.
When the roots fail
The quadratic can return a negative discriminant, which means no real edges exist. Take a known edge of 3, volume 60 and surface 60. The product is 20, half the surface is 30, so 3(b + c) = 10 and b + c = 10/3. Two positive numbers with sum 3.33 can have a product no larger than (3.33/2)², about 2.78, so a product of 20 is impossible. The totals contradict each other. Roots that are negative or zero are also invalid. Real edges need a positive discriminant or a zero one, with both roots above zero.
Inputs and units
Keep all three givens in consistent units: a length for the known edge, a volume in the cube of that unit and a surface in its square. Mixed units, such as an edge in inches and a volume in cubic feet, produce roots that look plausible and are wrong. Use the total surface area of all six faces, not the area of one face or the lateral area only. If a problem gives a surface without the top, adjust the formula before applying this method. The result is a set of edge lengths that satisfy the stated totals, within the precision of the inputs.
What the model describes
The shape is an ideal rectangular box with square corners and flat faces, and the totals refer to its outside. It does not describe wall thickness, a hollow interior, rounded edges or a lid with a lip. For a container, the inner volume and the outer surface differ, and mixing them in the equations would yield edges that match neither. The method recovers dimensions for the idealized solid, and any real use has to allow for material and tolerances separately.
Reproduce the checks
Unknown-side roots
Open the Quadratic Equation Calculator and enter:
- Coefficient a
1- Coefficient b
-9- Coefficient c
20
Expected output:
Root using minus sign
4Root using plus sign
5The roots have sum nine and product twenty.
Full cuboid check
Open the Cuboid Calculator and enter:
- Side a
3- Side b
4- Side c
5
Expected output:
volume
60surface
94The recovered dimensions satisfy both source totals.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- OpenStax ↗ · 2026-10-08
- MathWorld ↗ · 2026-10-08
- OpenStax: volume and surface area ↗ · 2026-10-17