Derivative Calculator — Numeric Slope f′(x)

Direct answer: this tool evaluates the derivative (the instantaneous slope) of a function at a chosen value of x using high-accuracy numeric differentiation. It returns a numeric value at a single point — not a symbolic formula. Type a function of x and a point, and it computes f′(x) live as you type.

Evaluate a derivative

Use x as the variable. Supports + − * / ^ and sin, cos, tan, sqrt, ln (use log for natural log), exp, pi.

How this calculator works

This is a numeric derivative calculator. Instead of finding a symbolic formula for f′(x), it estimates the slope of your function at one specific point using the central-difference method:

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

Here h is a tiny step (about 10−6, scaled with the size of x for accuracy). Because it samples the function just to the left and right of your point and measures how much the output changes, it returns the instantaneous slope — that is, the value of the derivative at that point. If the result is extremely close to a whole number, it is rounded for readability.

What you get is a single number, f′(x), for the x you entered. To see the derivative at a different point, just change the value of x and the answer updates instantly.

Differentiation rules

While this tool gives you a numeric answer, it helps to know the standard rules of differentiation so you can check results and understand the underlying calculus.

Common derivatives reference

Function f(x)Derivative f′(x)
c (constant)0
xnn·xn−1
sin xcos x
cos x−sin x
tan xsec2 x
exex
ln x1 / x
√x1 / (2√x)

Worked examples

Frequently asked questions

Does this show steps or a symbolic answer?

No. This is a numeric calculator: it returns the value of the derivative at the single point you choose, computed by sampling the function. It does not produce a symbolic formula like f′(x) = 2x + 3 or show algebraic steps. Use the differentiation rules above to work out the symbolic form by hand.

How accurate is the result?

Central-difference differentiation is highly accurate for smooth functions — typically correct to several decimal places. Results that fall within 0.0001 of a whole number are rounded so you see clean values like 7 or 0.5.

Which functions can I use?

You can use + − * / ^ plus sin, cos, tan, sqrt, exp, abs, and ln/log (both natural log), along with the constants pi and e. Always write the variable as x.

Why do I get “Invalid function” or “Undefined”?

“Invalid function” means the expression contained characters or names the calculator does not recognize — check your syntax and that you used x. “Undefined” means the function or its slope is not finite at that point (for example, log(x) at x = 0). Try a different point.

Can it find the derivative at points where the function isn’t differentiable?

Numeric differentiation will still return a number near sharp corners or jumps (such as abs(x) at x = 0), but that value is not meaningful because the true derivative does not exist there. Treat results at non-smooth points with caution.

Related Calculators

Last reviewed: June 2026