Goal
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement.
Worldwide context
Saved once here, used across the site.
Currency changes display only. Country selection guides tax input; no tax rate is guessed.
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement.
Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only.A clearer path to an answer
This page keeps the calculation transparent: define the goal, enter the matching values, inspect the method, and decide what the result means in your situation.
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement.
Spring constant · Displacement from equilibrium
Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only.
Calculate, review the assumptions below, then compare a related tool when the decision needs more context.
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement.
Open the Elastic Potential Energy pageMore science tools
Download PDFDownload Word (.doc)
Enter your values above and choose Calculate to see the result here.
Calculation map
Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only.
Bounded, transparent calculation
Your recent runs stay in this browser session only.
Formula: Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only.
This calculator evaluates the energy stored by an ideal linear spring at an entered displacement from equilibrium. The squared displacement makes the result nonnegative and independent of direction, but the page does not select a spring or provide spring safety advice.
Worked example: Ideal elastic potential energy is 1 J.
The displayed limits are checked before the handler runs. Model-specific domain checks may also reject impossible or non-finite inputs.
Methodology: This calculator follows the WorldCalculate input, formula, precision, and boundary policy. Read the official methodology.
Calculator usage statistics
This section counts anonymous successful Calculate submissions, not unique visitors. Counts and top tools appear only when trusted aggregate data is available; country analysis is shown only under the same condition and reporting threshold.
Answer-first guide
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement. Start with one clearly defined goal, enter values in the units shown, and keep the result attached to the assumptions below.
This tool is useful when your question includes elastic potential energy, spring energy, Hooke law. It returns the outputs declared in the calculator contract rather than a live quote, approval, diagnosis, or professional sign-off.
Spring constant · Displacement from equilibrium. Keep the same time period, unit system, and currency wherever the form requires comparable values.
Run the worked example first, compare its output with the page's example, then change one input at a time. This makes an unexpected result easier to trace to a unit, boundary, or assumption.
Need a wider view? Browse Science Calculators or compare the related tools below. The WorldCalculate methodology explains how formulas, examples, limits, and revisions are reviewed.
Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only.
This calculator evaluates the energy stored by an ideal linear spring at an entered displacement from equilibrium. The squared displacement makes the result nonnegative and independent of direction, but the page does not select a spring or provide spring safety advice.
Ideal elastic potential energy is 1 J.
Context and background
Science calculators define a system, choose an equation, apply units and constants, and show the substitution. Effects outside that model remain outside the result.
Introductory science problem solving builds from measured quantities and idealized relationships. Those models are valuable for learning and first-pass estimates, while experiments and engineering decisions need additional evidence.
Research and review
Researched by Hassan ALRowaie, Founder and editorial researcher at WorldCalculate.
This guide follows the live calculator's declared inputs, formula, worked example, assumptions, validation boundaries, and source-backed methodology. The review date describes editorial review of the calculator explanation; it is not a promise that external facts or rates remain current.
Elastic potential energy is the ideal energy associated with deforming a linear spring away from its equilibrium position. This calculator uses U = 0.5 k x^2, with spring constant k in newtons per metre and signed displacement x in metres. The result is in joules. The sign of displacement records which side of equilibrium was used, but the square makes the ideal stored-energy magnitude the same for equal positive and negative displacements. The relation assumes an ideal linear spring and says nothing about choosing hardware, allowable travel, fatigue, failure, or safe installation. The sections below explain equilibrium, stiffness, displacement, the force relation, the energy formula, examples, scaling, validation, and the boundary between textbook energy and real spring behavior.
The calculator answers a narrow question: how much elastic potential energy follows from an entered spring constant and an entered displacement when the spring is ideal and linear? It takes the displacement from a stated equilibrium position, squares it, multiplies by stiffness, and applies one half. It does not identify the equilibrium experimentally, inspect the spring, or decide whether the linear law remains valid at the selected travel.
The result is a model energy, not a statement about a manufactured spring. Real springs can have friction, hysteresis, preload, nonlinear coils, mass, damping, plastic deformation, and limits on travel. None of those effects is present in the two-field relation. Keeping the ideal boundary visible allows the formula to be useful in mechanics while preventing it from becoming a selection or safety recommendation.
Displacement x is measured from the spring's chosen equilibrium position. In the simplest unloaded spring exercise, that position is the length at which the restoring force is zero. In another setup, equilibrium may include a static load or preload. The calculator does not discover which convention applies. It uses the signed number exactly as the user defines it and assumes the zero of elastic energy is at that equilibrium.
Changing the reference changes the meaning of x and can change an energy calculation. A displacement from the unstretched length is not automatically the same as a displacement from a loaded equilibrium. The formula remains easy to evaluate, but the reference must be stated. The handler cannot infer a preload, external load, or support condition from the two numeric fields.
The spring constant k describes the slope of the ideal linear force-displacement relation F = -k x. A larger k means that the same displacement corresponds to a larger restoring-force magnitude and, in the ideal model, a larger stored-energy value. Its unit is N/m: a change in displacement in metres multiplied by stiffness produces force in newtons.
This calculator treats k as an entered property rather than calculating it from wire diameter, coil geometry, material, or a laboratory test. The range includes zero for a mathematical limiting case and extends to 1,000,000,000,000 N/m for a finite computational contract. Those bounds do not describe typical hardware or approve a spring for any load.
The displacement field accepts negative and positive values from -1,000,000 m through 1,000,000 m. The sign indicates direction relative to the equilibrium reference. Because the energy formula contains x squared, +0.1 m and -0.1 m produce the same ideal energy for the same k. The restoring force would have opposite directions, but this page does not return force or direction.
Preserving the signed input is still important. A caller should not replace a negative displacement with its absolute value before the handler, because the sign may matter to a later force or motion calculation. The current energy result is symmetric, but the input record retains the orientation convention. The pure function validates the signed range and performs the square once.
For an ideal linear spring, the restoring-force magnitude grows in direct proportion to displacement. The work needed to move from equilibrium to x is the area under a straight force-displacement graph. That triangular area has base x and height kx, giving one half k x squared. This geometric explanation makes the factor of one half visible rather than treating it as an unexplained constant.
The formula is the textbook boundary: it assumes a conservative linear force law and a single displacement path from equilibrium. It does not include energy lost to damping or friction, energy retained by a spring's mass, or work done by other forces. If the actual force curve is nonlinear or hysteretic, integrating that curve would be a different model.
The calculator evaluates U = 0.5 k x^2. Stiffness has units N/m and displacement squared has units m^2, so their product has units N m. A newton-metre is a joule in the work and energy context. The output is labeled J because the quantity is energy, even though its base-unit product contains the same dimensions as a moment.
The formula uses the magnitude of stored energy relative to equilibrium. It does not report a negative potential-energy value for one side of equilibrium, because the ideal quadratic form is nonnegative under this chosen zero. A different potential reference could add a constant, but that is not part of this calculator's contract.
Use k = 200 N/m and x = 0.1 m. Squaring the displacement gives 0.01 m^2. Multiplying by stiffness gives 2 N m, and multiplying by one half gives U = 1 J. The result is positive even though the displacement is positive; if the example used -0.1 m, the square would give the same 1 J under the ideal symmetric law.
This example calibrates the arithmetic, not a real spring. It does not say that a 200 N/m component can safely travel 0.1 m, that its force remains linear, or that one joule is the complete energy in an assembly. A clear worksheet records the equilibrium reference and the fact that the value is an ideal linear-spring result.
A zero spring constant gives zero energy for every allowed displacement, and zero displacement gives zero energy for every allowed stiffness. These are mathematical boundaries in the contract. A zero stiffness represents no restoring slope in the simplified equation; zero displacement places the ideal spring at its chosen energy reference. Both cases remain valid as long as the values are finite and within range.
The displacement endpoints and stiffness endpoint are accepted because they produce finite arithmetic under the requested bounds. Their acceptance is not a statement that a real spring can sustain the deformation or that a zero-stiffness object behaves like a spring. The handler reports what the equation says and leaves physical suitability outside scope.
Energy is linear in k and quadratic in x. Doubling stiffness doubles U at the same displacement. Doubling displacement multiplies U by four. Tripling displacement multiplies it by nine. These relationships are useful for checking an implementation and for seeing why travel changes can dominate stiffness changes in the ideal formula.
The scaling holds only while the same linear law and equilibrium reference remain appropriate. A real spring can change behavior with travel, coil contact, material stress, preload, or permanent deformation. The calculator does not add a cutoff or guess a nonlinear correction. It simply evaluates the stated equation for the bounded inputs.
The ideal energy curve is a parabola centered at equilibrium. Equal displacements on opposite sides have equal heights, so the stored energy is symmetric. The corresponding restoring force is the negative slope of that curve and reverses direction across equilibrium. Since this page returns energy only, the two signs produce equal results even though their force directions differ.
That distinction matters when a user tries to infer motion from the energy. Energy magnitude alone does not identify the direction of travel, the current velocity, or which side of equilibrium the spring occupies. The signed field preserves the position convention, but the handler does not calculate a trajectory or force vector.
The simple relation treats elastic energy as recoverable potential energy in an ideal conservative element. If the spring is released without losses, that energy can be exchanged with kinetic energy in a textbook oscillator. The page does not simulate the exchange. It gives the potential term for a state and leaves mass, velocity, damping, and external work unspecified.
Real loading and unloading paths may not coincide. Friction, internal damping, and hysteresis can convert part of the input work to heat. A spring can also have a mass that carries kinetic energy, and attachments can store or dissipate energy. None of those effects should be inferred from the ideal result.
The handler requires a finite numeric spring constant from zero through 1,000,000,000,000 and a finite numeric displacement from -1,000,000 through 1,000,000. Numeric strings, missing values, NaN, infinities, and values beyond those limits are rejected. This direct validation protects callers that do not pass through the browser form.
The squared displacement, energy product, and result entry are finite-checked. The allowed maximum is comfortably within ordinary JavaScript numeric range, but explicit protection documents the output guarantee. No input is clipped and no expression text is evaluated. A rejected value remains visible as an input problem instead of becoming a different spring scenario.
Spring selection requires facts absent from this page: target load, travel, preload, geometry, material, fatigue life, temperature, mounting, manufacturing tolerance, and failure mode. A calculated energy value cannot choose a spring constant or establish that a component can store and release that energy safely. The catalog deliberately states that spring selection and safety advice are outside the calculation.
The same boundary applies to questions about coil binding, buckling, resonance, fatigue, or attachment. The ideal relation can be one term in a reviewed design analysis, but it does not approve the design. Keep the formula and input reference visible when handing the value to another process, and do not turn the result into an instruction.
A useful record identifies the spring or ideal element only as the source of k, states the equilibrium reference, preserves the signed displacement, and records the N/m and m units. Show the force-law assumption and the triangular-area or direct formula step. Then label the output as ideal elastic potential energy in joules. These details make a symmetric result interpretable rather than just a bare positive number.
Finish the record with the textbook boundary: U = 0.5 k x^2 assumes an ideal linear spring and does not select hardware, assess nonlinear behavior, or give safety advice. If a later analysis includes damping, preload, or a measured force curve, it should state how that larger model differs from this ideal calculation.
The calculator is useful for work-energy exercises, Hooke-law examples, comparisons of stiffness, and demonstrations of quadratic displacement dependence. It can show why compression and extension with equal magnitude have equal ideal potential energy while their restoring forces point in opposite directions. It is also a compact test case for signed bounded inputs and finite arithmetic.
It is not a substitute for a spring catalog, test, or engineering review. When the question changes from how much ideal energy follows from k and x to which spring to buy, how far it may travel, or whether it is safe, the page has reached its boundary. Preserve the result as a model term and move the practical decision elsewhere.
Confirm that k is the stiffness about the selected equilibrium and that x is a signed displacement in metres from that same reference. Check the square, the one-half factor, and the joule unit. Test zero, positive, and negative displacements when reviewing the arithmetic. These checks establish the ideal formula but do not establish that a physical spring follows it over the entered range.
Then ask whether the result is being used only as ideal linear-spring energy. If yes, it is a clear and bounded calculation. If it is being used to select a component, approve travel, estimate failure, or issue safety instructions, stop. The page evaluates U = 0.5 k x^2 and nothing in that output approves a spring or its use.
The ideal spring force is zero at equilibrium and changes linearly with displacement. On a graph of restoring-force magnitude against distance from equilibrium, the line rises with slope k. The work needed to reach a positive displacement is the triangular area below the line. The same area appears for an equal negative displacement when direction is handled separately, which explains the energy symmetry.
A graph also makes clear why the one-half factor cannot be dropped. Treating the final force as if it acted over the entire path would create a rectangle and double the ideal work. The calculator directly applies the triangular-area result. It does not build or inspect a force graph from measurements.
If measured force values do not form an approximately straight line through the selected reference, the linear formula may not describe the element over that interval. A user should not force those values into the calculator by changing k until the result looks convenient. The page accepts the ideal property as a premise and does not fit a nonlinear law.
A spring can be preloaded by an external force or assembled at a length that is not its natural length. The displacement field still needs a clearly stated reference. If the zero of force and the zero of potential energy differ from the chosen equilibrium, the simple quadratic expression may not represent the whole stored-energy bookkeeping without additional terms.
External forces can also do work on a spring while a load is attached. The current result does not separate work by the spring from work by a person, actuator, gravity, or another component. It evaluates the ideal elastic term relative to the declared equilibrium and leaves the larger energy balance outside scope.
This is why the word ideal matters in the catalog. The page can show how a selected k and x combine, but it cannot decide whether a preload is intended, whether a load path is stable, or whether a spring assembly is appropriate. Those are separate questions with additional physical information.
The output is one value based on one k and one x. If stiffness or displacement was measured, their uncertainty can affect the energy, especially because displacement is squared. A later analysis can evaluate upper and lower scenarios or propagate a stated measurement model. This calculator does not produce an uncertainty interval or choose a rounding rule for the measurements.
When comparing two springs, keep the reference and displacement convention consistent. Equal stored energies can arise from different stiffness and travel combinations, but those combinations can have very different forces and physical behavior. The calculator returns energy only and does not infer the force at the endpoint unless the user evaluates a separate relation.
A report should preserve k, signed x, equilibrium, units, and the ideal boundary. If the number is used in a mechanism study, label it as one elastic term and do not imply that the mechanism, spring, or attachment has been selected or approved.
Calculate the elastic potential energy stored in an ideal linear spring from its spring constant and displacement.
Elastic potential energy U = 0.5 k x^2 for an ideal linear spring, where k is spring constant and x is displacement from equilibrium. This is an ideal linear-spring relation only. This calculator evaluates the energy stored by an ideal linear spring at an entered displacement from equilibrium. The squared displacement makes the result nonnegative and independent of direction, but the page does not select a spring or provide spring safety advice.
Enter Spring constant, Displacement from equilibrium, then choose Calculate.
Spring constant is a finite nonnegative value in N/m and displacement is a finite signed distance in metres measured from the chosen equilibrium position. The spring follows a linear force-displacement relation over the entered displacement and is treated as conservative with zero elastic energy at equilibrium. This is an ideal linear-spring textbook relation only. Spring selection, fatigue, buckling, failure, installation, and safety advice are outside the calculation.
This calculator is part of the WorldCalculate library. Its formula, example, assumptions, input bounds, and output formatting follow the official methodology.
These WorldCalculate collections connect this tool with related questions while keeping each calculation separate and transparent.