# Elastic Potential Energy Calculator > Calculate energy stored in a stretched or compressed ideal spring. Page: https://askcalculators.com/calculator/elastic-potential-energy-calculator/ Definition: https://askcalculators.com/calculator/elastic-potential-energy-calculator/definition.json JSON Schema: https://askcalculators.com/calculator/elastic-potential-energy-calculator/schema.json Version: 1.0.0 Maintained by: AskCalculators (software project; not a credentialed reviewer) Qualified review: pending. Automated checks do not establish professional approval. Page status: Live Review status: Pending ## Use Open the calculator page and enter values. Query-string parameters can restore and bookmark a calculation. Example: https://askcalculators.com/calculator/elastic-potential-energy-calculator/?springConstant=200&displacement=0.1 ## Inputs - springConstant: Spring constant k (N/m); type=number; required; default=200; min=0 - displacement: Displacement x (m); type=number; required; default=0.1 ## Outputs - energy: Elastic potential energy (J); format=number; primary - force: Spring force magnitude (N); format=number ## Formula elastic energy U = ½kx²; spring-force magnitude = k|x| ## Rules - Empty optional inputs are undefined, not zero. - Hidden conditional inputs are ignored. - Do not invent missing required inputs.