Rectangle Calculator
Calculate area, perimeter, and diagonal length of any rectangle.
What is a Rectangle?
A rectangle is a four-sided polygon (quadrilateral) in which all four interior angles are right angles (90°). Its opposite sides are equal in length and parallel to each other. The two distinct side lengths of a rectangle are typically referred to as the length (the longer side) and the width (the shorter side), though mathematically there is no strict requirement that one be longer than the other.
Rectangles are among the most commonly encountered shapes in everyday life. Doors, windows, screens, books, tables, rooms, fields, and city blocks are all typically rectangular. The prevalence of rectangles in architecture and manufacturing is no accident - right angles are easy to construct, simple to measure, and allow objects to be stacked, tiled, and arranged efficiently without wasted space.
The three most important measurements of a rectangle are its area, perimeter, and diagonal. The area tells you how much two-dimensional space it occupies. The perimeter gives the total length of its boundary. The diagonal - the line connecting opposite corners - is found using the Pythagorean theorem, because the diagonal, along with two sides, forms a right triangle inside the rectangle.
A rectangle where all four sides are equal is called a square, making the square a special case of a rectangle. Every square is a rectangle, but not every rectangle is a square. This hierarchical relationship means all formulas derived for rectangles apply equally to squares, with the additional constraint that length equals width.
Understanding rectangle geometry is essential in fields ranging from interior design and construction to computer graphics and image processing, where screen resolutions and image dimensions are always described as rectangular arrays of pixels.
Formula
Area of a Rectangle:
Perimeter of a Rectangle:
Diagonal of a Rectangle:
How to Use This Calculator
- Enter the length of your rectangle in the first input field. Use any consistent unit (cm, m, inches, feet).
- Enter the width in the second field. Both length and width must use the same unit.
- Click Calculate to compute area, perimeter, and diagonal simultaneously.
- Read the results - each card shows the formula used for transparency. Area is in square units, while perimeter and diagonal are in the same linear unit as your inputs.
- Try different dimensions - change either value and recalculate to explore how the measurements change.
Example Calculations
Example 1 - Room Floor Area
A bedroom is 4.5 m long and 3.2 m wide. Find its floor area, skirting board length (perimeter), and corner-to-corner diagonal.
Example 2 - Farmland Plot
A rectangular agricultural plot measures 120 m by 85 m. How much area does it cover, and how much fencing is needed?