# Potential Energy

Harry Potter and the Sorcerer's Stone, Book 1 on Audible

As an Amazon Associate I earn from qualifying purchases. Thank you!

**Formula:**`PE = mgh`

## Introduction to Potential Energy Calculator

The potential energy of an object is the energy that it possesses as a result of its position in a gravitational field. The formula to calculate potential energy is ** PE** =

**×**

*mass***×**

*height***, where**

*gravity***represents the potential energy,**

*PE***is the mass of the object,**

*mass***is the height above a reference point, and**

*height***is the acceleration due to gravity. The standard value for gravity used in the formula is 9.81 m/s^2.**

*gravity*## Parameter usage:

`mass`

= mass of the object`height`

= height from the reference point`gravity`

= acceleration due to gravity (standard value is 9.81 m/s^2)

## Example valid values:

`mass`

= 10 kg`height`

= 5 m`gravity`

= 9.81 m/s^2

## Output:

`PE`

= potential energy of the object

## Data validation

The mass and height should be non-negative values. The gravity should be a positive value.

## Summary

This calculator helps in finding the potential energy possessed by an object due to its position in a gravitational field.

Tags: Physics, Potential Energy, Gravity, Energy