Given the length of sides of an equilateral triangle. We need to write a program to find the area of Circumcircle of the given equilateral triangle.

Examples:

Input : side = 6 Output : Area of circumscribed circle is: 37.69 Input : side = 9 Output : Area of circumscribed circle is: 84.82

All three sides of equilateral triangle are of equal length and all three interior angles are 60 degrees.

**Properties of a Circumcircle are as follows:**

- The center of the circumcircle is the point where the medians of the equilateral triangle intersect.
- Circumscribed circle of an equilateral triangle is made through the three vertices of an equilateral triangle.
- The radius of a circumcircle of an equilateral triangle is equal to (a / √3), where ‘a’ is the length of the side of equilateral triangle.

Below image shows an equilateral triangle with circumcircle:

The formula used to calculate the area of circumscribed circle is:

(π*a^{2})/3

where **a** is the length of the side of the given equilateral triangle.

**How this formulae works?**

We know that area of circle = π*r^{2}, where r is the radius of given circle.

We also know that radius of Circumcircle of an equilateral triangle = (side of the equilateral triangle)/ √3.

Therefore, area = π*r^{2} = π*a^{2}/3.

## C++

`// C++ program to find the area of Cicumscribed ` `// circle of equilateral triangle ` `#include <iostream> ` `#include <math.h> ` `const` `double` `pi = 3.14159265358979323846; ` ` ` `using` `namespace` `std; ` ` ` `// function to calculate the area of circumcircle ` `// of equilateral triangle ` `float` `area_circumscribed(` `float` `a) ` `{ ` ` ` `return` `(a * a * (pi / 3)); ` `} ` `// Driver code ` `int` `main() ` `{ ` ` ` `float` `a, Area; ` ` ` `a = 6; ` ` ` ` ` `// function calling ` ` ` `Area = area_circumscribed(a); ` ` ` `// displaying the area ` ` ` `cout << ` `"Area of CircumCircle :"` `<< Area; ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## C

`// C program to find the area of Cicumscribed ` `// circle of equilateral triangle ` `#include <stdio.h> ` `#define PI 3.14159265 ` ` ` `// function to find area of ` `// circumscribed circle ` `float` `area_circumscribed(` `float` `a) ` `{ ` ` ` `return` `(a * a * (PI / 3)); ` `} ` ` ` `// Driver code ` `int` `main() ` `{ ` ` ` `float` `a = 6; ` ` ` `printf` `(` `"Area of circumscribed circle is :%f"` `, ` ` ` `area_circumscribed(a)); ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// Java code to find the area of circumscribed ` `// circle of equilateral triangle ` `import` `java.lang.*; ` ` ` `class` `GFG { ` ` ` ` ` `static` `double` `PI = ` `3.14159265` `; ` ` ` ` ` `// function to find the area of ` ` ` `// circumscribed circle ` ` ` `public` `static` `double` `area_cicumscribed(` `double` `a) ` ` ` `{ ` ` ` `return` `(a * a * (PI / ` `3` `)); ` ` ` `} ` ` ` ` ` `// Driver code ` ` ` `public` `static` `void` `main(String[] args) ` ` ` `{ ` ` ` `double` `a = ` `6.0` `; ` ` ` `System.out.println(` `"Area of circumscribed circle is :"` ` ` `+ area_cicumscribed(a)); ` ` ` `} ` `} ` |

*chevron_right*

*filter_none*

## Python3

`# Python3 code to find the area of circumscribed ` `# circle of equilateral triangle ` `PI ` `=` `3.14159265` ` ` `# Function to find the area of ` `# circumscribed circle ` `def` `area_cicumscribed(a): ` ` ` `return` `(a ` `*` `a ` `*` `(PI ` `/` `3` `)) ` ` ` `# Driver code ` `a ` `=` `6.0` `print` `(` `"Area of circumscribed circle is :%f"` ` ` `%` `area_cicumscribed(a)) ` ` ` `# This code is contributed by Anant Agarwal. ` |

*chevron_right*

*filter_none*

## C#

`// C# code to find the area of ` `// circumscribed circle ` `// of equilateral triangle ` `using` `System; ` ` ` `class` `GFG { ` ` ` `static` `double` `PI = 3.14159265; ` ` ` ` ` `// function to find the area of ` ` ` `// circumscribed circle ` ` ` `public` `static` `double` `area_cicumscribed(` `double` `a) ` ` ` `{ ` ` ` `return` `(a * a * (PI / 3)); ` ` ` `} ` ` ` ` ` `// Driver code ` ` ` `public` `static` `void` `Main() ` ` ` `{ ` ` ` `double` `a = 6.0; ` ` ` `Console.Write(` `"Area of circumscribed circle is :"` `+ ` ` ` `area_cicumscribed(a)); ` ` ` `} ` `} ` ` ` `// This code is contributed by nitin mittal. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to find the ` `// area of Cicumscribed ` `// circle of equilateral triangle ` `$PI` `= 3.14159265; ` ` ` `// function to find area of ` `// circumscribed circle ` `function` `area_circumscribed(` `$a` `) ` `{ ` ` ` `global` `$PI` `; ` ` ` `return` `(` `$a` `* ` `$a` `* (` `$PI` `/ 3)); ` `} ` ` ` `// Driver code ` `$a` `= 6; ` `echo` `(` `"Area of circumscribed circle is :"` `); ` `echo` `(area_circumscribed(` `$a` `)); ` ` ` `// This code is contributed by Ajit. ` `?> ` |

*chevron_right*

*filter_none*

**Output:**

Area of circumscribed circle is :37.6991118

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Area of Circumcircle of an Equilateral Triangle using Median
- Program to calculate area and perimeter of equilateral triangle
- Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle
- Maximum count of Equilateral Triangles that can be formed within given Equilateral Triangle
- Area of Circumcircle of a Right Angled Triangle
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of circle which is inscribed in equilateral triangle
- Area of Equilateral triangle inscribed in a Circle of radius R
- Maximum area of rectangle inscribed in an equilateral triangle
- Area of the circumcircle of any triangles with sides given
- Program To Check whether a Triangle is Equilateral, Isosceles or Scalene
- Program to find the Circumcircle of any regular polygon
- Time required to meet in equilateral triangle
- Biggest Square that can be inscribed within an Equilateral triangle
- Largest hexagon that can be inscribed within an equilateral triangle
- Largest square that can be inscribed within a hexagon which is inscribed within an equilateral triangle
- Count of distinct rectangles inscribed in an equilateral triangle
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Find if a point lies inside, outside or on the circumcircle of three points A, B, C

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.