Home▸Articles▸Drawing with Maths

The 2D Superformula: A Mathematical Masterpiece

A versatile mathematical tool for creating intricate shapes found in nature and technology.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

Definition of the 2D Superformula

The 2D Superformula is a generalization of the superellipse and was introduced by Johan Gielis in 2003. It is defined as: r(θ) = (|cos(mθ/4)/a|^n2 + |sin(mθ/4)/b|^n3)^(-1/n1), where θ is the angle, m controls the number of lobes, n1 and n2 shape the radial distribution, and a and b scale factors. This formula can generate a wide variety of shapes, from simple circles to complex star-like figures.

By adjusting the parameters m, n1, n2, a, and b, one can create an almost infinite range of geometric forms, making it a powerful tool in both theoretical mathematics and practical applications such as computer graphics and design.

How the 2D Superformula Works

The formula works by combining trigonometric functions with power operations. The term inside the parentheses is a sum of two components, each raised to different powers (n2 and n3) before being added together. This sum is then inverted using another exponent (1/n1), which controls the overall shape's smoothness or sharpness.

The parameter m determines the number of lobes in the figure, while a and b scale the figure along its major and minor axes, respectively. The interplay between these parameters allows for the creation of highly intricate and diverse shapes.

live demo · related simulation● LIVE

Applications of the 2D Superformula

The 2D Superformula has numerous applications in various fields. In biology, it can model natural structures like leaves or flowers. In architecture and design, it aids in creating aesthetically pleasing and functional shapes for buildings and products.

In the field of computer graphics, the formula is used to generate realistic textures and shapes for 3D models, enhancing visual fidelity in video games and movies.

Real-World Examples

One notable example is the use of the 2D Superformula in modeling the shape of a snowflake. By carefully selecting parameters, it can accurately represent the complex patterns found in nature.

In another application, the formula has been used to design efficient wind turbine blades, optimizing their aerodynamic properties for better performance.

Frequently asked questions

What is the significance of each parameter in the 2D Superformula?

The parameters m, n1, n2, a, and b each play a crucial role. m controls the number of lobes or branches; n1 affects the overall shape's smoothness; n2 and n3 shape the radial distribution; and a and b scale the figure along its major and minor axes.

How does the 2D Superformula differ from other parametric equations?

The 2D Superformula is more versatile as it can generate a wide variety of shapes, including those that cannot be described by simpler equations like circles or ellipses. It provides greater flexibility in creating complex and diverse geometric figures.

Can the 2D Superformula be used to model real-world objects?

Yes, the 2D Superformula can accurately model a wide range of natural and man-made objects, from leaves and flowers to wind turbine blades. Its ability to generate complex shapes makes it useful in various fields such as biology, architecture, and engineering.

What are some limitations of using the 2D Superformula?

While powerful, the 2D Superformula can be computationally intensive when generating highly detailed or large-scale images. Additionally, finding the optimal parameters for a specific application may require trial and error.

Try it live

Everything above runs in your browser — open 2D Superformula — Gielis Curve Plotter and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open 2D Superformula — Gielis Curve Plotter simulation

What did you find?

Add reproduction steps (optional)