Home › Lumber
Carpentry Math Calculator
Formula verified · Updated Nov 2026
Results update as you type. Estimates only — confirm final quantities before ordering.
Two calculations every carpenter does by hand, on one page. 3-4-5 squaring checks whether a corner is truly square: measure 3 ft along one side and 4 ft along the other, and the diagonal between the marks must be exactly 5 ft. Miter angles give the saw settings for a corner: 45° for flat trim on a square corner, and the compound miter-plus-bevel pair for crown molding, which depends on the molding's spring angle. The squaring tool uses sides A and B; the miter tool uses the corner angle and the spring angle.
The formula
Flat trim miter = Corner angle ÷ 2
Crown miter = atan(tan(Corner ÷ 2) × sin(Spring angle))
Crown bevel = asin(cos(Spring angle) × cos(Corner ÷ 2))
3-4-5 is Pythagoras: any triangle with sides in the ratio 3:4:5 has a right angle, so scaling up to 6-8-10 or 9-12-15 gives a more accurate check on a big layout. The crown formulas are the standard compound-miter geometry for a molding cut flat on the saw: the spring angle is the angle between the back of the molding and the wall when installed — 38° for standard 52/38 crown, 45° for 45/45 crown — and the corner angle is the true angle between the two walls, which is rarely exactly 90° once drywall mud and framing are in. The miter and bevel outputs are hidden in squaring mode, and the diagonal is the 3-4-5 diagonal for the sides entered, not part of the miter tool.
Worked example
Example — squaring: mark 3 ft along one wall and 4 ft along the other.
- Diagonal: √(3² + 4²) = √25 = 5 ft (60 in) — if the tape reads 5 ft, the corner is square
- Scaled up: 6 ft and 8 ft must read 10 ft (120 in)
Example — crown molding: a 90° corner, standard 38° spring crown.
- Miter: atan(tan 45° × sin 38°) = 31.62°
- Bevel: asin(cos 38° × cos 45°) = 33.86°
Same corner, 45° spring crown: miter 35.26°, bevel 30.00°. Flat baseboard on a 90° corner: miter 45°, bevel 0°.
Reference chart
| Corner angle | Miter (38° spring) | Bevel (38° spring) | 3-4-5 check | Diagonal |
|---|---|---|---|---|
| 45° (acute) | 14.3° | 46.7° | 3 ft × 4 ft | 5 ft |
| 90° (square) | 31.6° | 33.9° | 6 ft × 8 ft | 10 ft |
| 135° (obtuse) | 56.1° | 17.6° | 9 ft × 12 ft | 15 ft |
| 120° (obtuse) | 46.8° | 23.2° | 12 ft × 16 ft | 20 ft |
Frequently asked questions
How does the 3-4-5 method check a corner is square?
Mark 3 ft along one wall from the corner and 4 ft along the other, then measure the diagonal between the two marks: it must be exactly 5 ft. If it reads long, the corner is open past 90°; if short, it is closed under 90°. Scale up for accuracy — 6-8-10 or 9-12-15 on a big layout — because a small error is easier to see over a longer diagonal. Any multiple of 3-4-5 works, and so does 5-12-13.
What miter angle do I need for a square corner?
For flat trim such as baseboard, casing or picture frame, half the corner angle: 45° on a 90° corner, bevel 0°. Crown molding leans at its spring angle, so it needs a compound cut: for standard 38° spring crown on a 90° corner, miter 31.6° and bevel 33.9°; for 45° spring crown, miter 35.3° and bevel 30.0°. Those are the settings printed on most miter saw detents.
What is the spring angle of crown molding?
The angle between the back of the molding and the wall when it is installed — 38° for standard 52/38 crown (the most common profile) and 45° for 45/45 crown. It is printed on the profile packaging or the store listing; if it is not printed, 38° is the safer guess for large crown. Cutting with the wrong spring angle is the most common reason crown corners do not close.
My corner is not 90° — what do I do?
Measure the true corner angle with a digital angle finder and enter it here. A 135° corner (an eight-sided room) needs 56.1° miter and 17.6° bevel for 38° spring crown, and a 45° acute corner needs 14.3° and 46.7° — very different from the 90° settings. Walls are rarely exactly 90° once drywall mud is in, so always confirm with a test cut on scrap before cutting the real molding.
Why cope inside corners instead of mitering them?
An inside corner miter opens up as the wood shrinks and the house moves, because both pieces pull away from the joint. A coped joint — one piece cut square into the corner and the other cut to the profile of the first — stays tight because the profiled piece overlaps the square one. Cope inside corners on baseboard and crown; miter outside corners, where the joint is visible from the room and both pieces can be glued and pinned.
Related calculators
- Stud Calculator — Studs, plates and total lumber for any wall.
- Stair Calculator — Steps, riser height, total run and stringer length for a straight stair.
- Deck Calculator — Joists, boards and screws for a wood or composite deck.
How we verify this
3-4-5 squaring from Pythagoras (a² + b² = c²); crown compound-miter formulas miter = atan(tan(C/2) × sin S), bevel = asin(cos S × cos(C/2)), verified against the published DeWalt crown guide (31.62° miter / 33.85° bevel for 52/38 crown at 90°) and published crown angle charts (38° spring: 90° corner 31.6°/33.9°, 135° corner 56.1°/17.6°, 45° corner 14.3°/46.7°; 45° spring at 90°: 35.3°/30.0°).