A hexagon is a 6-sided, 2-dimensional geometric figure. The total of the internal angles of any hexagon is 720°. A regular hexagon has 6 rotational symmetries and 6 reflection symmetries. All internal angles are 120 degrees.
Input: 4 Output: 41.5692 Input: 6 Output: 93.5307
Number of vertices: 6
Number of edges: 6
Internal angle: 120°
Area = (3 √3(n)2 ) / 2
How does the formula work? There are mainly 6 equilateral triangles of side n and area of an equilateral triangle is (sqrt(3)/4) * n * n. Since in hexagon, there are total 6 equilateral triangles with side n, are of the hexagon becomes (3*sqrt(3)/2) * n * n
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.
- Area of hexagon with given diagonal length
- Area of the Largest Triangle inscribed in a Hexagon
- Area of a circle inscribed in a regular hexagon
- Find length of Diagonal of Hexagon
- Largest Square that can be inscribed within a hexagon
- Diagonal of a Regular Hexagon
- Largest hexagon that can be inscribed within a square
- 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
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Count of Equilateral Triangles of unit length possible from a given Hexagon
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Area of a polygon with given n ordered vertices
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- Maximum area of triangle having different vertex colors
- Check if right triangle possible from given area and hypotenuse
- Program to find area of a triangle
- Program to find area of a circle
- Maximum area rectangle by picking four sides from array
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.