Frame Calculator

Frame Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=ab−cdA = a\,b - c\,d
Usage stats

Advertisement

Results

Area A
68
Outer perimeter42
Inner perimeter26
Total edge length68
Outer width a12
Outer height b9
Inner width c8
Inner height d5
Frame width at the sides2
Frame width at top and bottom2
Opening area40

Report an error on this page

What is a frame?

A frame is the region between two rectangles with parallel sides, an outer one a by b and an inner opening c by d placed in the middle. The frame is (a − c)/2 wide at the sides and (b − d)/2 at the top and bottom; with one frame width w all round, c = a − 2w and d = b − 2w.

How to use it

Choose what you know: the outer and inner sizes, the outer size and the frame width, or the inner size and the frame width. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (boxes that allow 0 also accept 0); anything else, including text, is refused instead of being read as something else.

Derivation of the formulas

The frame is the outer rectangle minus the opening; cut into two full-width strips and two side strips it reads

$$A = a\,b - c\,d = 2a\,w_y + 2d\,w_x,\qquad w_x = \frac{a - c}{2},\; w_y = \frac{b - d}{2}$$

The strip form avoids subtracting the two areas ab and cd, but the widths (a − c)/2 and (b − d)/2 still subtract two nearly equal lengths for a thin frame, so fewer digits are reliable there. The frame has two boundaries:

$$P_{out} = 2(a + b),\qquad P_{in} = 2(c + d)$$

Worked example

The page opens with outer width a = 12, outer height b = 9, inner width c = 8, inner height d = 5. Then area A = 68; outer perimeter = 42; inner perimeter = 26; opening area = 40 (shown to at most six decimals; see the precision note in the FAQ).

Advertisement
Rectangular frame with outer dimensions 12 by 9 and opening dimensions 8 by 5.
The worked example subtracts the opening area, 40, from the outer rectangle to give a frame area of 68. The outer and inner perimeters are 42 and 26.

FAQ

Does the opening have to be centred?

Area and perimeters do not depend on where the opening sits; only the side and end widths shown assume it is centred.

Why is an opening as wide as the outside refused?

Then the frame has no side at all and falls apart into two strips, so it is not a frame.

Why does the unit not change the numbers?

The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.

How precise are the results?

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. The page shows up to six decimals; a value too small or too large for that is written out as a plain number instead.

References

Zwillinger, D. (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018

Last updated: