yCalculator

Rectangle Calculator

Last updated: June 2026

Area

32 square units

Perimeter

24 units

Diagonal

8.9443 units

Step-by-step working

  1. Area = l x w = 8 x 4 = 32
  2. Perimeter = 2(l + w) = 2(8 + 4) = 24
  3. Diagonal = sqrt(l^2 + w^2) = 8.9443

Shape diagram

rectangle

About this calculator

The Rectangle Calculator finds area, perimeter, and diagonal from length and width. It is useful for room measurements, paper sizes, screen shapes, flooring estimates, garden beds, and checking Pythagorean diagonal calculations.

rectangle calculator method

A rectangle has opposite sides equal and four right angles. Area multiplies length by width, perimeter adds all four sides, and diagonal uses Pythagoras.

  • Area = l x w
  • Perimeter = 2(l + w)
  • Diagonal = sqrt(l^2 + w^2)

How to use the rectangle calculator

  1. Enter the rectangle length.
  2. Enter the rectangle width.
  3. Multiply length by width for area.
  4. Add length and width, then double it for perimeter.
  5. Use Pythagoras to calculate the diagonal.
  6. Check whether your final unit should be units or square units.

Worked examples

Room rectangle

Input: Length 5 m, width 3 m

Calculation: Area = 5 x 3, perimeter = 2(5 + 3)

Result: Area 15 square metres, perimeter 16 metres

Diagonal

Input: Length 8, width 6

Calculation: Diagonal = sqrt(8^2 + 6^2)

Result: 10 units

Diagonal as a right triangle

The diagonal divides a rectangle into two right triangles. That is why the diagonal formula uses the Pythagorean theorem.

Practical geometry checks

Use one unit system
Keep all lengths in the same unit before calculating. Mixing centimetres, metres, inches, or feet in the same formula will produce misleading results.
Perimeter vs area
Perimeter is a distance around the outside. Area is the amount of flat space inside a shape. Surface area is the total outside covering of a 3D shape.
Rounded answers
Pi, square roots, and trigonometric values are often irrational, so decimal answers are approximations. Keep extra decimal places until the final result.

Edge cases

  • Zero or negative dimensions do not describe a real physical shape.
  • Regular polygon formulas assume all sides and angles are equal.
  • Circle and ellipse formulas use pi, so most decimal answers are rounded.
  • A trapezoid/trapezium perimeter needs all four side lengths, not just the parallel sides and height.

Limitations

This calculator is for educational and planning use. For construction, manufacturing, surveying, engineering, or safety-critical work, confirm dimensions, tolerances, and rounding rules with the appropriate professional method or specification.

Frequently asked questions

What units should I enter?

Use any length unit you like, but keep every length in the same unit. If you enter metres, area is in square metres and surface area is also in square metres.

Why are some answers approximate?

Calculations involving pi, square roots, or curved shapes often produce irrational numbers. The calculator rounds the displayed decimal result.

What is the difference between area and surface area?

Area measures a flat 2D region. Surface area measures the total outside area of a 3D object.

Can I use these calculators for homework?

Yes. They are useful for checking answers and understanding formulas, but you should still show the working required by your class or exam.

Do regular polygon formulas work for irregular polygons?

No. Regular polygon formulas assume equal sides and equal angles. Irregular polygons usually need to be split into simpler shapes.

Related calculators

  • Perimeter Calculator
  • Area Calculator
  • Pythagorean Theorem Calculator

What does this mean?

This calculator is designed to help you understand the likely number before you make a decision or start an application.

Your result should be checked against official UK guidance, especially if your circumstances include dependants, exemptions, prior leave, or a complex immigration history.

Treat the figure as a planning tool rather than legal advice. Where the answer affects an application deadline or major payment, speak to an authorised adviser.

Related Math calculators

math calculators

Triangle Calculator

Solve any triangle using SSS, SAS, ASA, AAS, SSA, right triangle, and Pythagorean theorem modes

Calculate ->

math calculators

Area Calculator

Calculate the area of common 2D shapes with formula substitutions and unit conversions

Calculate ->

math calculators

Volume Calculator

Calculate the volume and surface area of common 3D shapes with full working and practical litre conversions

Calculate ->

You might also need

math calculators

Perimeter Calculator

Calculate perimeter for squares, rectangles, triangles, circles, and regular polygons

Calculate ->

math calculators

Area Calculator

Calculate the area of common 2D shapes with formula substitutions and unit conversions

Calculate ->

math calculators

Pythagorean Theorem Calculator

Calculate a hypotenuse or missing right-triangle side using a squared plus b squared equals c squared

Calculate ->