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:

  • Γ(1 + 1/2) = Γ(3/2) = √π / 2
  • Γ(1 + 2/2) = Γ(2) = 1! = 1

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:

  • a: the semi-axis length along the x-direction. The curve reaches x = +a and x = −a when y = 0.
  • b: the semi-axis length along the y-direction. The curve reaches y = +b and y = −b when x = 0.
  • n: the exponent that controls how round or square the shape is. The default is n = 2 (ellipse).

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:

  • For fixed a and b, the area is typically largest around n ≈ 2 (near an ellipse) and decreases as you move toward very small or very large n.
  • Increasing a or b scales the area approximately in proportion to the product ab, since the formula has an overall factor of 4ab.
  • When a = b, the shape is radially symmetric, and the area can be interpreted as a “rounded square” whose roundness changes with n.

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:

  • Positive parameters only: the derivation assumes a > 0, b > 0, and n > 0. Negative or zero values do not correspond to a meaningful closed superellipse for area purposes.
  • Standard superellipse form: the formula applies specifically to curves of the form |x / a|^n + |y / b|^n = 1. If your curve is translated, rotated, or scaled differently, you should first convert it to this standard form.
  • Units: the inputs a and b must be expressed in the same length units. The resulting area will then be in the square of those units.
  • Numerical stability: very small values of n (close to zero) or very large values of n can make the Gamma function difficult to evaluate numerically with high precision. In such cases, rounding errors may become noticeable in the final area value.
  • Ideal mathematical model: real-world shapes may only approximate a perfect superellipse. The computed area is exact for the mathematical curve but may differ slightly from manufactured or measured objects.

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:

  • Product and industrial design: Many tabletops, trays, lenses, and bezels are based on superellipse outlines, providing a balance between circular and rectangular aesthetics. The enclosed area is needed to estimate material use or surface treatments.
  • Architecture and urban planning: Plazas, traffic islands, and building footprints sometimes follow superellipse curves to soften corners and manage pedestrian flow. Area calculations support paving, landscaping, and occupancy estimates.
  • Graphics and data visualization: Superellipse boundaries can frame plots or interface elements. The area informs layout, scaling, or collision detection in graphical applications.
  • Optimization problems: In mathematical optimization and p-norm geometry, superellipses describe level sets of norms. Their area enters probability, integration, and constraint analyses.

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.