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

HTML
CSS
JavaScript
PHP-MySQL
Which tag can be used to create input text field in web page?
<form> <input> <div>
<input type="text" name="a_name" value="val" />
Which CSS property displays the text in a small-caps font?
display font-variant font-style
h3 {
  font-variant: small-caps;
}
What instruction displays a notice box with a message inside it, in JavaScript?
for() Date() alert()
var msg = "Visit CoursesWeb.net";
alert(msg);
Indicate the PHP code used to get the users IP.
$_SERVER["HTTP_USER_AGENT"] $_SERVER["REMOTE_ADDR"] $_GET[]
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. Multi-Level Menu Creator (1124)
  2. While Loops (774)
  3. PHP-MySQL free course, online tutorials PHP MySQL code (25945)
  4. Variables and Operators (799)
  5. $_GET, $_POST and $_REQUEST Variables (15835)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (31807)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (25945)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (24869)
  4. Read Excel file data in PHP - PhpExcelReader (24064)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (21677)