Perimeter of a Triangle Calculator
Solve perimeter atriangle problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Perimeter of a Triangle Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: P = a + b + c
Worked example โ Perimeter = 45 feet of fencing needed. Area = 89.34 sq ft. The triangle is scalene and acute.
Formula
P = a + b + c
The perimeter P of a triangle is the sum of all three side lengths a, b, and c. The semi-perimeter s = P/2 is used in Heron's formula to calculate area and in formulas for the inradius and circumradius.
Worked Examples
Example 1: Triangular Garden Border
Problem:A triangular garden has sides of 12 feet, 15 feet, and 18 feet. Calculate the perimeter and how much fencing material is needed.
Solution:Perimeter = 12 + 15 + 18 = 45 feet Semi-perimeter s = 45/2 = 22.5 Area (Heron) = sqrt(22.5 * 10.5 * 7.5 * 4.5) = sqrt(7981.875) = 89.34 sq ft Inradius = 89.34 / 22.5 = 3.97 ft Triangle type: Scalene, Acute
Result:Perimeter = 45 feet of fencing needed. Area = 89.34 sq ft. The triangle is scalene and acute.
Example 2: Equilateral Triangle Perimeter
Problem:A triangular sign has all sides equal to 24 inches. Find the perimeter and all properties.
Solution:Perimeter = 24 + 24 + 24 = 72 inches = 6 feet Area = (sqrt(3)/4) * 24^2 = 249.42 sq inches All angles = 60 degrees Inradius = 249.42 / 36 = 6.928 inches Circumradius = 24 / sqrt(3) = 13.856 inches
Result:Perimeter = 72 inches. Area = 249.42 sq in. All angles 60 deg. R/r ratio = 2 (minimum possible).
Frequently Asked Questions
What is the perimeter of a triangle?
The perimeter of a triangle is the total distance around the outside of the triangle, calculated by adding the lengths of all three sides together. If a triangle has sides of length a, b, and c, then the perimeter P = a + b + c. This is one of the most fundamental measurements in geometry, applicable to any triangle regardless of its type or angle measures. The perimeter represents the total amount of fencing needed to enclose a triangular area, the length of wire needed to outline a triangular shape, or the distance walked if you travel along all three edges. Understanding perimeter is essential for construction, landscaping, material estimation, and numerous practical applications.
How is the semi-perimeter used in triangle calculations?
The semi-perimeter s = P/2 = (a + b + c) / 2 is half the perimeter and serves as a key component in several important triangle formulas. Its most famous application is in Heron's formula for calculating triangle area: Area = sqrt(s(s-a)(s-b)(s-c)). The semi-perimeter also connects to the inradius through the relationship r = Area / s, and to the exradii through ra = Area / (s-a). In coordinate geometry, the semi-perimeter appears in barycentric coordinate calculations for the incenter. The semi-perimeter provides a natural scale parameter for the triangle, and many formulas become more elegant and symmetric when expressed in terms of s rather than the full perimeter.
What is the triangle inequality theorem?
The triangle inequality theorem states that the sum of any two sides of a triangle must be greater than the third side. This means for sides a, b, and c: a + b > c, a + c > b, and b + c > a. If any of these conditions fails, the three lengths cannot form a triangle. This theorem is fundamental because it defines which combinations of three lengths are geometrically possible. For example, sides of 3, 4, and 5 form a valid triangle because 3+4 > 5, 3+5 > 4, and 4+5 > 3. However, sides of 1, 2, and 5 cannot form a triangle because 1+2 = 3, which is not greater than 5. The theorem extends to higher dimensions and has applications in metric spaces and graph theory.
How do you find the perimeter of a triangle using coordinates?
When a triangle is defined by vertex coordinates, calculate the perimeter by finding the distance between each pair of vertices using the distance formula and adding them up. For vertices A(x1,y1), B(x2,y2), C(x3,y3): side AB = sqrt((x2-x1)^2 + (y2-y1)^2), side BC = sqrt((x3-x2)^2 + (y3-y2)^2), and side CA = sqrt((x1-x3)^2 + (y1-y3)^2). The perimeter is AB + BC + CA. For example, for vertices at (0,0), (3,0), and (0,4): AB = 3, BC = 5, CA = 4, perimeter = 12. This approach is essential in computer graphics, GIS applications, and computational geometry where shapes are defined by coordinate points rather than direct measurements.
What is the relationship between perimeter and area of a triangle?
Perimeter and area are related but distinct properties. For a fixed perimeter, the maximum area is achieved by an equilateral triangle, a result known as the isoperimetric inequality for triangles. Specifically, for a triangle with perimeter P, the maximum area is P^2 times sqrt(3) / 36. The relationship Area = r times s (where r is inradius and s is semi-perimeter) directly connects area and perimeter. However, knowing only the perimeter does not uniquely determine the area, as infinitely many triangles can share the same perimeter but have different areas. For example, triangles with sides 3-4-5 and 2-5-5 both have perimeter 12, but their areas are 6 and approximately 4.90 respectively.
How do you calculate the perimeter of special triangles?
Special triangles have simplified perimeter formulas. For an equilateral triangle with side a, the perimeter is simply 3a. For an isosceles triangle with equal sides a and base b, the perimeter is 2a + b. For a right triangle with legs a and b, the perimeter is a + b + sqrt(a^2 + b^2), since the hypotenuse must be calculated. For a 30-60-90 triangle with shortest side a, the sides are a, a times sqrt(3), and 2a, giving perimeter a(3 + sqrt(3)). For a 45-45-90 triangle with legs a, the perimeter is a(2 + sqrt(2)). These simplified formulas save computation time when you know the triangle type and allow quick estimation of material requirements in construction and design.
What units should be used for perimeter calculations?
Perimeter is always measured in linear units (length units), not square units like area. If the sides are measured in meters, the perimeter is in meters. If sides are in feet, the perimeter is in feet. Consistency of units is critical: all three sides must be measured in the same unit before adding them. If side a is 3 feet, side b is 24 inches, and side c is 1 yard, you must convert all to the same unit first (e.g., all to feet: 3 + 2 + 3 = 8 feet). Common perimeter units include millimeters for precision engineering, centimeters for everyday objects, meters for room and building dimensions, kilometers for geographic features, inches for North American construction, and feet for property boundaries.
How does changing one side affect the perimeter and other properties?
Changing one side of a triangle affects the perimeter linearly but has nonlinear effects on other properties. If you increase side a by a small amount while keeping b and c fixed, the perimeter increases by exactly that amount. However, the area, angles, inradius, and circumradius all change in complex, nonlinear ways. Increasing one side while holding others constant makes the opposite angle larger (law of cosines), potentially changing the triangle from acute to obtuse. The triangle inequality constrains how much any side can change: it must remain less than b + c and greater than the absolute difference of b and c. The area initially increases as a narrow triangle becomes wider but eventually decreases as the triangle approaches degeneracy.
What is the perimeter used for in real-world applications?
The perimeter of a triangle has countless practical applications across many fields. In construction and fencing, the perimeter determines how much material is needed to border a triangular plot of land. In textile and fabric work, the perimeter tells you how much trim, binding, or edging material is required for a triangular piece. In picture framing, the perimeter of a triangular frame determines the length of molding needed. Civil engineers calculate perimeters of triangular sections in road design, bridge trusses, and structural supports. In sports, triangular courses for sailing regattas or running races have perimeters that determine total race distance. Even in everyday cooking, cutting triangular portions from rectangular sheets requires understanding perimeter for portion sizing.
How do you find the perimeter if you only know two sides and an included angle?
When you know two sides and the angle between them (SAS configuration), use the law of cosines to find the third side, then add all three for the perimeter. If you know sides a, b and the included angle C, the third side c = sqrt(a^2 + b^2 - 2ab times cos(C)). Then perimeter = a + b + c. For example, with sides 6 and 8 and an included angle of 60 degrees: c = sqrt(36 + 64 - 2(6)(8)(0.5)) = sqrt(52) = 7.211, giving perimeter = 6 + 8 + 7.211 = 21.211. This SAS approach is common in surveying where you can measure two distances from a point and the angle between them but cannot directly measure the opposite side due to obstacles like rivers, buildings, or terrain.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎ30-60-90 Triangle Calculator
Solve a 30-60-90 triangle from any one side. Get the short leg, long leg, hypotenuse, area, and perimeter instantly.
๐งฎ45-45-90 Triangle Calculator
Solve a 45-45-90 triangle from a leg or the hypotenuse. Get both equal legs, the hypotenuse, area, and perimeter with instant results.
๐งฎPerimeter Calculator
Calculate perimeter with inputs, formulas, and instant results.
๐งฎTriangle Inequality Theorem Calculator
Calculate triangle inequality theorem with inputs, formulas, and instant results.
๐งฎPascals Triangle Calculator
Calculate pascals triangle with inputs, formulas, and instant results.
๐งฎCircle Sector Perimeter Calculator
Calculate circle sector perimeter with inputs, formulas, and instant results.
๐งฎTriangle Circumcenter Calculator
Calculate triangle circumcenter with inputs, formulas, and instant results.
๐งฎTriangle Incenter Calculator
Calculate triangle incenter with inputs, formulas, and instant results.