Formula and method
F = −kx (signed restoring force); magnitude = k|x|. Inputs must use the units stated above. This calculator performs only the displayed idealized calculation; it does not model unlisted effects.
Worked sample
For k = 200 N/m and x = 0.05 m, restoring force is −10 N.
Validation and limitations
Inputs are checked for finite values and physically required positive quantities. Results are browser-only and are educational estimates; verify assumptions and units before practical use. This is not an engineering or safety certification tool.