The script presented in this page is a tool to calculate surface area, perimeter and other dimensions (radius, diagonal, height) of various 2D geometrical shapes: circle, ellipse, triangle, hexagon, parallelogram, rectangle, rhombus, square, trapezoid.
This calculator shows also the mathematical formulas used to calculate the area, perimeter, and the other dimensions.

Calculate Area and Perimeter

JavaScript script to calculate surface area and perimeter.
Find area and perimeter of various 2d geometrical shapes.

Select an object

• To Download this script, click: Area and Perimeter Calculator.

Daily Test with Code Example

Which tag adds a new line into a paragraph?
<b> <br> <p>
First line ...<br>
Other line...
Which CSS property can be used to add space between letters?
text-size word-spacing letter-spacing
#id {
  letter-spacing: 2px;
What JavaScript function can be used to get access to HTML element with a specified ID?
getElementById() getElementsByTagName() createElement()
var elm = document.getElementById("theID");
var content = elm.innerHTML;
Click on the "echo" correct instruction.
echo "" echo ""; echo """;
echo "Address URL:";
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. Countdown Timer until specified Date-Time (4052)
  2. Add and Remove HTML elements and Content with jQuery (23926)
  3. Common PHP Errors and Solutions (6286)
  4. Deluxe Pool (817)
  5. Pool Master Secure (2751)

Popular pages this month

  1. Qwop (4887)
  2. Get Attribute (ID, Class, Name, Title, Src) with jQuery (3012)
  3. Get the value of the selected /checked checkboxes in a form (2330)
  4. Drag Racer V3 (1932)
  5. Flash Games - Free online Games (1572)