CalcWorldHub
Free online calculator · no signup

Central difference derivative calculator

Estimate a derivative from function values an equal step to either side of a point using a central difference.

A better way to figure it out
Clear
inputs.
∑
Clear result · useful details
Free calculatorNo signup ✓
Central difference derivative calculator — f(x+h), f(x−h), Step size h and calculation method
Central difference derivative calculator: inputs and calculation method.

How to use this calculator

Estimate a derivative from function values an equal step to either side of a point using a central difference.

  1. Enter f(x+h), f(x−h), Step size h. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How the Central difference derivative calculator works

Estimate a derivative from function values an equal step to either side of a point using a central difference.

Inputs and units

  • f(x+h): Function value evaluated at x+h.
  • f(x−h): Function value evaluated at x−h, in the same output unit.
  • Step size h: Nonzero signed step in x units; if its sign changes, the two function locations must change accordingly.

Formula and method

f′(x) ≈ [f(x+h) − f(x−h)]/(2h)

Worked example

With f(x+h)=12, f(x−h)=8, and h=0.5, derivative ≈ (12−8)/1 = 4 output-units per x-unit.

Interpreting the result

The estimate is the secant slope across a symmetric interval of width 2h, not h.

Assumptions and limits

h must be nonzero. Values must correspond to the stated locations. For a smooth function central truncation error is typically proportional to h², but rounding and noisy data can dominate very small steps.

Sources and method

Frequently asked questions

Why is the denominator 2h?

The two evaluation points are x+h and x−h, separated by 2h.

Is the smallest possible h always best?

No. Subtraction of nearly equal function values can magnify floating-point and measurement error.

How do I use the Central difference derivative calculator?

Enter f(x+h), f(x−h), Step size h. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Central difference derivative?

With f(x+h)=12, f(x−h)=8, and h=0.5, derivative ≈ (12−8)/1 = 4 output-units per x-unit.

What does the Central difference derivative calculator calculate?

Estimate a derivative from function values an equal step to either side of a point using a central difference.