Superellipse Area Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What is a superellipse?

A superellipse (also called a Lamé curve) is a smooth closed curve that generalizes the ordinary ellipse. Instead of satisfying the familiar ellipse equation, points on a superellipse obey

|x / a|^n + |y / b|^n = 1,

where a > 0 and b > 0 are scale factors along the x- and y-axes, and n > 0 is an exponent that controls the shape. The calculator on this page focuses on the area enclosed by this curve.

Different values of n produce a family of shapes:

Superellipses became widely known through the work of Danish scientist and designer Piet Hein, who used them in architecture, industrial design, and urban planning. Because they smoothly transition between circular and rectangular shapes, they are useful anywhere you want something between a circle and a rectangle with visually pleasing curvature.

Area formula for a superellipse

The area A enclosed by the superellipse |x / a|^n + |y / b|^n = 1 can be written exactly using the Gamma function Γ(·):

A = 4 a b · Γ(1 + 1/n)2 / Γ(1 + 2/n).

In MathML form, the same formula is:

A = 4 a b Γ 2 Γ ( 1 + 1 n ) ( 1 + 2 n )

More explicitly,

A = 4ab · [Γ(1 + 1/n) · Γ(1 + 1/n)] / Γ(1 + 2/n).

Here, Γ(z) is the Gamma function, which extends the factorial to non-integer values. For positive integers k, one has Γ(k) = (k − 1)!. This extension is what allows the formula to work smoothly even when n is not an integer.

Check: ellipse as a special case

When n = 2, the superellipse is an ordinary ellipse and the formula should reduce to the familiar πab. Plugging n = 2 into the general formula gives:

Then

A = 4ab · (Γ(3/2))^2 / Γ(2) = 4ab · (π/4) / 1 = πab.

This confirms that the Gamma-function expression is consistent with the classical ellipse area formula.

How to use the superellipse area calculator

The calculator takes three inputs that correspond directly to the equation |x / a|^n + |y / b|^n = 1:

To compute the area:

  1. Enter positive values for a and b in any length units (meters, centimeters, inches, etc.).
  2. Enter a positive value for n. Typical values are between 0.5 and 10 for practical shapes.
  3. Run the calculation. The tool evaluates the Gamma-function formula numerically and returns the area.

The units of area always follow the units of a and b. For example, if you input a and b in meters, the output area is in square meters; if you input them in millimeters, the output is in square millimeters.

Interpreting the results

The numerical value returned by the calculator tells you how much two-dimensional space is enclosed by the superellipse. A few patterns are useful to keep in mind when exploring different parameter values:

Because the Gamma function is smooth in its argument, the area varies smoothly as you change n, even when n is not an integer. This is one advantage of the analytic formula over purely geometric constructions.

Worked examples

Example 1: unit circle (ellipse case)

Suppose a = 1, b = 1, and n = 2. Then the superellipse equation is

|x|^2 + |y|^2 = 1,

which describes the unit circle. As shown above, the area formula reduces to

A = πab = π · 1 · 1 = π ≈ 3.1416.

If you enter these values into the calculator, you should see an area close to 3.1416 in whatever squared units correspond to your length units.

Example 2: diamond with different axes

Now let a = 2, b = 1, and n = 1. The equation becomes

|x / 2| + |y / 1| = 1,

which traces out a diamond (a rhombus) with vertices at (±2, 0) and (0, ±1). In this special case, you can also compute the area using basic geometry: it is half the product of the diagonals,

A = (1/2) · (4) · (2) = 4.

The Gamma-function formula agrees, and the calculator will return an area of 4 in your squared length units.

Example 3: rounded rectangle from a non-integer exponent

Consider a = 3, b = 1.5, and n = 4. The equation is

|x / 3|^4 + |y / 1.5|^4 = 1,

which gives a shape closer to a rectangle with rounded corners than to an ellipse. There is no simple elementary formula for its area, but the Gamma-function expression handles it automatically.

The calculator evaluates

A = 4 · 3 · 1.5 · Γ(1 + 1/4)^2 / Γ(1 + 2/4),

and returns the numerical result. You can experiment with nearby values of n (for example, 3 or 6) to see how the area changes as the shape becomes more or less rectangular.

Comparison with related area formulas

The superellipse area formula connects several familiar shapes in a single framework. The table below summarizes how the calculator relates to more standard area formulas.

Shape type Defining equation / parameters Area formula How this calculator handles it
Circle a = b = r, n = 2 A = πr^2 Special case of the superellipse with symmetric axes; formula reduces to πab.
Ellipse a, b semi-axes, n = 2 A = πab Directly reproduced when you set n = 2.
Diamond (rhombus) n = 1, diagonals 2a and 2b A = (1/2) · (2a) · (2b) = 2ab Obtained from the same Gamma-based formula with n = 1.
Rounded rectangle-like superellipse n > 2, arbitrary a, b No simple elementary formula Area computed numerically using the Gamma function for any positive n.

In contrast to a basic ellipse or rectangle area calculator, this tool supports non-integer exponents n and covers both classical shapes and in-between cases in one interface.

Assumptions and limitations

The formula and calculator rely on several mathematical and numerical assumptions:

For design, engineering, or manufacturing, it is good practice to treat the calculator results as an ideal reference and allow for tolerances appropriate to your application.

Practical uses of superellipse areas

Knowing the area of a superellipse is useful in several applied settings:

Because the calculator accepts non-integer exponents, it lets you explore a wide range of shapes numerically without needing to re-derive area formulas each time.

Enter a, b, and n.

Embed this calculator

Copy and paste the HTML below to add the Superellipse Area Calculator - Generalized Ellipse to your website.