Skip to content
Zesona
Rectangle Area CalculatorLocal

Rectangle Area Calculator

Find the area, perimeter and diagonal of a rectangle, with the area and perimeter exact.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.

A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.

How many digits to show when the answer is irrational. An exact answer ignores this.

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter the two side lengths. The area and perimeter are exact; the diagonal usually is not.

Questions about Rectangle Area Calculator

Why is the diagonal not exact when the area is?

Because the area is a product and the diagonal is a square root. A 3 by 2 rectangle has area exactly 6 and a diagonal of the square root of 13, which is irrational. The diagonal is exact only when the sides form a Pythagorean pair, such as 3 and 4.

What about a square?

A square is detected and reported. Its diagonal is the side times the square root of 2, which is irrational for any rational side - so a square with a whole-number side never has a whole-number diagonal.

Is my data sent anywhere?

No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.

Does the Rectangle Area Calculator work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Rectangle Area Calculator keeps working with the network switched off and nothing is ever sent to a server.

Is anything I enter into the Rectangle Area Calculator uploaded or stored?

No. The Rectangle Area Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.

Other tools you might reach for next.