Heart Shape Calculator

Heart Shape Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=(1+π4)a2,P=(2+π)aA = \left(1 + \frac{\pi}{4}\right) a^{2}, \quad P = (2 + \pi)\,a
Usage stats

Advertisement

Results

Area A
178.539816
Perimeter P51.415927
Width b17.071068
Height h15.606602

Report an error on this page

What is this heart shape?

This heart shape is a square of side a standing on one corner, with a semicircle drawn outward on each of its two upper sides; each semicircle has the side a as its diameter. The lower two sides of the square form the point of the heart, and the two semicircles form its lobes. The shape is mirror symmetric about the vertical line through the bottom and top corners of the square.

A heart constructed from a square standing on a corner and two semicircles, with the square side marked 10.
The heart is made from a square of side 10 and a semicircle on each upper side.

How to use it

Type the side a of the square. The width, height, perimeter and area follow from it. The length unit is only a label: lengths come out in that unit and areas in its square. The square side a must be from 0.000001 to 1,000,000,000; a number may also be typed in exponent form such as 2.5e3. Anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.

Derivation of the formulas

Put the bottom corner at the origin. The square has its other corners at (±a/√2, a/√2) and (0, a√2). The centre of each semicircle is the midpoint of an upper side, (±a/(2√2), 3a/(2√2)), and its radius is a/2; the outward half reaches a/2 beyond the centre both sideways and upwards:

$$ b = 2\left(\frac{a}{2\sqrt{2}} + \frac{a}{2}\right) = \left(1 + \frac{\sqrt{2}}{2}\right) a, \qquad h = \frac{3a}{2\sqrt{2}} + \frac{a}{2} = \left(\frac{1}{2} + \frac{3\sqrt{2}}{4}\right) a $$

The area is the square plus two half discs of radius a/2, and the outline is two sides of the square plus two half circles:

$$ A = a^{2} + \frac{\pi a^{2}}{4}, \qquad P = 2a + \pi a $$

Advertisement

Worked example

The page opens with square side a = 10. Then area A ≈ 178.539816; perimeter P ≈ 51.415927; width b ≈ 17.071068; height h ≈ 15.606602. Each value is shown rounded once, from the computed number, to six decimals or to 12 significant digits, whichever is fewer; a value of 10¹² and more is written as its 12 significant digits times a power of ten, such as 1.23456789012 × 10¹⁵, since a computed number holds no more digits than that; a value below 0.0000005 is shown as its plain 12-digit number instead.

The geometric heart with its width marked 17.071068 and height marked 15.606602.
For square side 10, the heart has width approximately 17.071068 and height approximately 15.606602. Its area is approximately 178.539816 and its perimeter is approximately 51.415927.

Frequently asked questions

Is this the heart curve of the textbooks?

No. Several smooth heart curves exist (for example the cardioid or algebraic heart curves); this page measures the simple heart built from a square and two semicircles, which has two straight edges and a pointed tip.

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 accurate 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.

Advertisement

References

H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated:

Most popular in Geometry

View all Geometry calculators