Circle Calculator (Advanced) Formula
Understand the math behind the circle calculator (advanced). Each variable explained with a worked example.
Formulas Used
Area
area = pi * pow(r, 2)Circumference
circumference = 2 * pi * rDiameter
diameter = 2 * rSector Area
sector_area = pi * pow(r, 2) * angle_deg / 360Arc Length
arc_length = 2 * pi * r * angle_deg / 360Variables
| Variable | Description | Default |
|---|---|---|
r | Radius | 5 |
angle_deg | Sector Angle (degrees)(deg) | 90 |
How It Works
Circle Calculations
Formulas
A sector is a "pie slice" of the circle defined by a central angle.
Worked Example
A circle with radius 5, find area and a 90-degree sector.
r = 5angle_deg = 90
- 01Area = pi × 25 ≈ 78.5398
- 02Circumference = 2 × pi × 5 ≈ 31.4159
- 03Sector area = 78.5398 × 90/360 ≈ 19.6350
- 04Arc length = 31.4159 × 90/360 ≈ 7.8540
Ready to run the numbers?
Open Circle Calculator (Advanced)