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:
a = b it is a circle.(±a, 0) and (0, ±b).n increases.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.
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:
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.
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! = 1Then
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.
The calculator takes three inputs that correspond directly to the equation |x / a|^n + |y / b|^n = 1:
x = +a and x = −a when y = 0.
y = +b and y = −b when x = 0.
n = 2 (ellipse).
To compute the area:
a and b in any length units (meters, centimeters, inches, etc.).n. Typical values are between 0.5 and 10 for practical shapes.
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.
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:
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.
ab, since the formula has an overall factor of 4ab.
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.
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.
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.
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.
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.
The formula and calculator rely on several mathematical and numerical assumptions:
a > 0, b > 0, and n > 0. Negative or zero values do not correspond to a meaningful closed superellipse for area purposes.
|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.
a and b must be expressed in the same length units. The resulting area will then be in the square of those units.
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.
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.
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.