Skip to content
Omnikalc

Superellipse (Lamé curve) calculator

Enter the semi-axes a and b and the exponent n of the curve |x/a|^n + |y/b|^n = 1 to get its area, the ratio to the ellipse and to the bounding rectangle, the y value at a given x and the diagonal point.

Updated on
Your inputs
cm

Value out of range

cm

Value out of range

Value out of range

cm

Value out of range

Results

Area of the superellipse

405.712 cm²

Area compared with the ellipse

107.62 %

y value at x

9.251 cm

Area of the ellipse with the same axes
376.991 cm²
Share of the bounding rectangle
84.52 %
x of the diagonal point
9.094 cm
y of the diagonal point
7.579 cm

The superellipse calculator gives the area of the Lamé curve |x/a|^n + |y/b|^n = 1 from its semi-axes and its exponent n, its ratio to the ellipse and to the bounding rectangle, the y value at a given x and the diagonal point.

How the calculation works

  • Enter the semi-axes a and b.
  • Enter the exponent n, where 2 is an ellipse and larger values are squarer.
  • Enter an x value and read the area, the ratios and the y value.

Example

A superellipse with a = 12 cm, b = 10 cm and n = 2.5 has an area of 405.712 cm², which is 107.62 % of the ellipse of area 376.991 cm² and 84.52 % of its bounding rectangle. At x = 6 cm the curve is at y = 9.251 cm, and the diagonal point is at 9.094 cm and 7.579 cm.

Why it matters

The calculator helps product designers, architects, woodworkers and graphic designers who draw rounded tables, plates, app icons or windows with a shape between an ellipse and a rectangle, and students who study the gamma function and curves with a parameter, and need the area of the shape to estimate material.

Good to know

The exponent n sets the squareness: values below 2 give pointed shapes with concave sides, 2 gives the ellipse and values above 2 approach the rectangle. The x value must stay between 0 and a, otherwise the calculator caps it at a. The area uses the gamma function and is exact. The perimeter is not shown because it has no simple formula. Dimensions use one unit, and the areas use its square. A negative or zero exponent is not allowed.

The ellipse calculator treats the classic case n = 2, the circle calculator handles n = 2 with equal axes, the astroid calculator covers the concave case with n = 2/3 and the lemniscate calculator treats another famous plane curve.

Frequently asked questions

What is a superellipse?

A superellipse, or Lamé curve, is the set of points with |x/a|^n + |y/b|^n = 1. With n = 2 it is an ellipse, with n = 1 a diamond, with n tending to infinity a rectangle, and with n = 4 a rounded square often called a squircle. Gabriel Lamé studied these curves in 1818.

How is the area computed?

The area is 4ab × Γ(1 + 1/n)² / Γ(1 + 2/n), where Γ is the gamma function. For n = 2 it gives πab. For n = 4 and a = b = 1, it is about 3.708, which is 92.7 % of the area 4 of the bounding square. For n = 1, it is 2ab, the area of the diamond.

What is the Piet Hein superellipse?

The Danish designer Piet Hein used n = 2.5 with a ratio a/b = 6/5 for a roundabout in Stockholm in 1959, because the shape is neither too round nor too square. He used it for tables, plates and furniture. The default values here, a = 12, b = 10 and n = 2.5, follow that proportion.

Does the curve have a simple perimeter?

No. Except for the special cases n = 1 and n = 2 (and the limit of the rectangle), the perimeter of a superellipse has no elementary closed form. It needs numerical integration. That is why the calculator shows the area and the points, which have exact formulas based on the gamma function.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.