Find a triangle's area from a base and height or from three sides, checking the triangle inequality first.
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
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
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.
Related tools
Other tools you might reach for next.
Find the area of a trapezoid exactly from its two parallel sides and height.
Find the interior and exterior angles of a regular polygon as exact fractions, with the angle sum and diagonal count.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.