Geometry Formulas (JavaScript)


Geometry Formulas (JavaScript)

Here is the list of the most common geometry formulas for perimeter, area, volume, surface areas, and circumference for different shapes like triangle, rectangle, square, parallelogram, circle sphere, trapezoid, pythagorean theorem triangle, cube and rectangular box..
You can call it a geometry cheat sheet, but it's more than that. This 'cheat sheet' will make all the calculations for you!
Everything will be calculated with simple JavaScript, including user input and DOM manipulation.


Square
P = 4s
A = s2
square

Enter the value of:

s =


Results:

A =

P =

Rectangle
P = 2a + 2b
A = ab
rectangle

Enter the value of:

a =

b =


Results:

A =

P =

Trapezoid
P = a + b + c + d
A = 1/2 h (a + b)
Trapezoid

Enter the value of:

a =

b =

c =

d =

h =


Results:

A =

P =

Parallelogram
P = 2a + 2b
A = bh
Parallelogram

Enter the value of:

a =

b =

h =


Results:

A =

P =

Triangle
P = a + b + c
A = 1/2 bh
triangle

Enter the value of:

a =

b =

c =

h =


Results:

A =

P =

Pythagorean Theorem
a2 + b2 = c2
c = √a2 + b2
Pythagorean Theorem

Enter the value of:

a =

b =


Results:

c =

Circle
P = 2πr
A = πr2
circle

Enter the value of:

r =


Results:

A =

P =

Sphere
V = 4/3 * πr3
S = 4πr2
sphere

Enter the value of:

r =


Results:

Volume =

Surface Area =

Cube
A = 6l2
V = l3
Cube

Enter the value of:

l =


Results:

A =

P =

Rectangular Box
P = 2ab + 2bc + 2ac
V = abc
Rectangular Box

Enter the value of:

a =

b =

c =


Results:

A =

V =

Cylinder
A = 2πr(r + h)
V = πr2h
cylinder

Enter the value of:

r =

h =


Results:

A =

V =

Illustration for the Geometry Formulas (JavaScript)
Education illustrations by Storyset

Comments (0)


Be the first to leave a comment