Code tool

Energy Calculator

Enter mass, speed, height above your chosen zero level, and gravitational acceleration.

In-browser processingNo account requiredPrivacy details ↗

KE = ½mv²; PE = mgh; total = KE + PE. This classical model uses constant gravity and your chosen zero-height reference, ignoring rotation, drag, and other energy forms. Default g = 9.80665 m/s² is standard gravity, not a measurement of your location. 1 kcal = 4184 J (thermochemical).

Calculated in this browser; inputs are not uploaded or saved.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a positive mass and choose its unit.
  2. Enter nonnegative speed and height, choose units, and set gravity.
  3. Read each energy in J, kJ, and kcal.

Energy results

KE = ½mv²; PE = mgh; total = KE + PE. This classical model uses constant gravity and your chosen zero-height reference, ignoring rotation, drag, and other energy forms. Default g = 9.80665 m/s² is standard gravity, not a measurement of your location. 1 kcal = 4184 J (thermochemical).

GOOD TO KNOW

Common questions

What does zero height mean?

Choose a reference level where gravitational potential energy is zero. This tool accepts heights at or above that level; changing the reference changes PE and total energy.