Volume and Area of Geometric Solids Calculator


Make sure to keep your units the same when entering your numbers!


Rectangular Prism

Formula: L*W*H




Area:

Volume:




Cube

Formula: L*L*L


Area:

Volume:




Cone

Pi is represented as 3.14

Formula: (1/3*pi)*(r*r)*h



Volume:




Cylinder

Pi is represented as 3.14

Formula: pi*(r*r)*h



Volume:




Sphere

Pi is represented as 3.14

Formula: (4/3*pi)*(r*r*r)


Volume:




Hemisphere

Pi is represented as 3.14

Formula: (2/3*pi)*(r*r*r)


Volume:




Pyramid

Formula: ((1/3*side length)*(1/3*side length))*h



Area:

Volume:




Surface Area For Rectangular Prisms

Formula: 2(H*L) + 2(L*W) + 2(H*W)

OR: 2(Face A + Face B + Face C)




Surface Area:







Credits:
Developer: The Ramenator
Designer: The Ramenator
Formulas: Calculator Soup: Online Calculators: Geometric Shapes and Formulas in Solid Geometry: www.calculatorsoup.com/calculators/geometry-solids/geometricshapes.php
Notes: This project took me nearly 3 and half days, and the code got very frustrating at times. Please feel free to fork this project.
EDIT: This was my first HTML project, and my first time messing around with js.