# Area of circle inscribed in a Isosceles Trapezoid

Given two bases of the **isoceles trapezoid ABCD** as **a** and **b**, the task is to find the **area of circle** inscribed in this trapezoid

**Examples:**

Input:a = 10, b = 30Output:Area = 235.57Input:a = 20, b = 36Output:Area = 565.38

**Derivation:** Given a circle inscribed in trapezium ABCD (sides AB = n and CD = m), we need to find out the height of the trapezium i.e., (AL), which is half of the radius of the circle to find the area of the circle.

For finding the height of circle we do following operation.

- The circle will always touch the sides of trapezium at their midpoints, Say the midpoints of AB, BD, CD, AC are G, F, H, E and join them with the centre of the circle.
- Now from Symmetry, we can see that
AG = AE = n/2, EC = CG = m/2, HD = DF = n/2, GB = FB = m/2

- Now in Triangle ACL apply the Pythagoras theorem.
Hypotenuse AC = m/2 + n/2 Base CL = CH - AG = m/2 - n/2 we get Perpendicular AL = Square_root(m * n)

- Therfore the
**height of the Trapezium = AL = Square_Root(Product of given sides)** - Now the radius of the circle is simple half of the height and hence the area can be calculated easily.

**Appriach:**

- Find the height of the trapezoid as
**(square_root( m * n ))**. - Find the radius of the incircle
R = height / 2 = square_root(m * n) / 2

- Now find the area of the circle
= Pi * R

^{2}= ( 3.141 * m * n ) / 4

Below is the implementation of the above approach:

## C++

`// CPP implementation to find ` `// the rea of the circle ` `// inscribed in a trapezoid ` `// having non- parllel sides m, n ` `#include<bits/stdc++.h> ` `using` `namespace` `std; ` ` ` `// Function to find area of circle ` `// inscribed in a trapezoid ` `// having non- parllel sides m, n ` `double` `area_of_circle(` `int` `m, ` `int` `n) ` `{ ` ` ` `// radius of circle by the ` ` ` `// formula i.e. root( m * n) / 2 ` ` ` `// area of circle = (3.141 ) * ( R ** 2 ) ` ` ` ` ` `int` `square_of_radius = ( m * n ) / 4; ` ` ` `double` `area = ( 3.141 * square_of_radius ); ` ` ` `return` `area; ` `} ` ` ` `// Driver Code ` `int` `main(){ ` ` ` `int` `n = 10; ` ` ` `int` `m = 30; ` ` ` `cout << (area_of_circle(m, n)); ` `} ` ` ` `// This code is contributed by mohit kumar 29 ` |

*chevron_right*

*filter_none*

## Java

`// Java Program to find ` `// the rea of the circle ` `// inscribed in a trapezoid ` `// having non- parllel sides m, n ` `class` `GFG ` `{ ` ` ` ` ` `// Function to find area of circle ` ` ` `// inscribed in a trapezoid ` ` ` `// having non- parllel sides m, n ` ` ` `static` `double` `area_of_circle(` `int` `m, ` `int` `n) ` ` ` `{ ` ` ` `// radius of circle by the ` ` ` `// formula i.e. root( m * n) / 2 ` ` ` `// area of circle = (3.141 ) * ( R ** 2 ) ` ` ` ` ` `int` `square_of_radius = ( m * n ) / ` `4` `; ` ` ` `double` `area = ( ` `3.141` `* square_of_radius ); ` ` ` `return` `area; ` ` ` `} ` ` ` ` ` `// Driver code ` ` ` `public` `static` `void` `main (String[] args) ` ` ` `{ ` ` ` `int` `n = ` `10` `; ` ` ` `int` `m = ` `30` `; ` ` ` `System.out.println(area_of_circle(m, n)); ` ` ` `} ` `} ` ` ` `// This code is contributed by Yash_R ` |

*chevron_right*

*filter_none*

## Python3

`# Python 3 implementation to find ` `# the rea of the circle ` `# inscribed in a trapezoid ` `# having non- parllel sides m, n ` ` ` ` ` `# Function to find area of circle ` `# inscribed in a trapezoid ` `# having non- parllel sides m, n ` `def` `area_of_circle(m, n): ` ` ` `# radius of circle by the ` ` ` `# formula i.e. root( m * n) / 2 ` ` ` `# area of circle = (3.141 ) * ( R ** 2 ) ` ` ` ` ` `square_of_radius ` `=` `( m ` `*` `n ) ` `/` `4` ` ` `area ` `=` `( ` `3.141` `*` `square_of_radius ) ` ` ` `return` `area ` ` ` `# Driver Code ` `if` `__name__` `=` `=` `'__main__'` `: ` ` ` `n ` `=` `10` ` ` `m ` `=` `30` ` ` `print` `(area_of_circle(m, n)) ` |

*chevron_right*

*filter_none*

## C#

`// C# Program to find ` `// the rea of the circle ` `// inscribed in a trapezoid ` `// having non- parllel sides m, n ` `using` `System; ` ` ` `class` `GFG ` `{ ` ` ` `// Function to find area of circle ` `// inscribed in a trapezoid ` `// having non- parllel sides m, n ` `static` `double` `area_of_circle(` `int` `m, ` `int` `n) ` `{ ` ` ` `// radius of circle by the ` ` ` `// formula i.e. root( m * n) / 2 ` ` ` `// area of circle = (3.141 ) * ( R ** 2 ) ` ` ` ` ` `int` `square_of_radius = ( m * n ) / 4; ` ` ` `double` `area = ( 3.141 * square_of_radius ); ` ` ` `return` `area; ` `} ` ` ` `// Driver code ` `public` `static` `void` `Main () ` `{ ` ` ` `int` `n = 10; ` ` ` `int` `m = 30; ` ` ` `Console.WriteLine(area_of_circle(m, n)); ` `} ` `} ` ` ` `// This code is contributed by Sanjit_Prasad ` |

*chevron_right*

*filter_none*

**Output:**

235.575

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: **DSA Self Paced**. Become industry ready at a student-friendly price.

## Recommended Posts:

- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Area of the circle that has a square and a circle inscribed in it
- Area of circle inscribed within rhombus
- Area of decagon inscribed within the circle
- Area of largest Circle that can be inscribed in a SemiCircle
- Area of circle which is inscribed in equilateral triangle
- Area of a circle inscribed in a regular hexagon
- Area of Equilateral triangle inscribed in a Circle of radius R
- Program to calculate area of an Circle inscribed in a Square
- Find the area of largest circle inscribed in ellipse
- Largest trapezoid that can be inscribed in a semicircle
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Program to find area of a Trapezoid
- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
- Find the altitude and area of an isosceles triangle
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- The biggest possible circle that can be inscribed in a rectangle

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.