Toolvito

Works on this device

Normal Line Calculator

The normal line to a curve at a point is the line through that point at a right angle to the tangent line. Type a function and a point to get its equation, with the steps. This page is about lines to curves, not about the normal (bell) curve of statistics.

Enter your values

Type the function and the x-value of the point. The page finds the derivative and gives the normal line and the tangent line.

Your values

Use x as the variable. Example: x^2, sin(x), sqrt(x + 1), e^x. Write 2x or 2*x for 2 times x.

A number, a fraction such as 1/2, or a value such as pi/4 or sqrt(2).

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Normal line to y = f(x) at a point. If you already know the slope of the curve at the point, choose Normal line from a point and a slope.
  2. Type the function with x as the variable, for example x^2 or sin(x).
  3. Type the x-value of the point. You can use a number, a fraction such as 1/2, or a value such as pi/4.
  4. Choose Calculate. Check the line Function as read to see that the page understood your formula.

How to type a function

  • Use +, -, *, / and ^ for powers. Brackets ( ) group things.
  • 2x and 3(x + 1) mean multiplication. x^2 is x squared.
  • Functions: sin, cos, tan, asin, acos, atan, sqrt, abs, ln, log, exp. They need brackets: sin(x), not sin x. You can also type sec, csc and cot.
  • Constants: pi and e. Angles are in radians. ln is the natural logarithm. log is the logarithm to base 10.
  • A power applies before a minus sign: -x^2 means −(x²). 1/2x is read as (1/2) × x. Use brackets for 1/(2x).
  • Anything else is refused, and the page tells you where the problem is.

The method

The slope of the tangent line at x = a is the derivative f′(a). The normal line is at a right angle to it, so its slope is −1 ÷ f′(a).

The normal line is y − f(a) = (−1 ÷ f′(a)) × (x − a).

The page finds the derivative by the sum, product, quotient, chain and power rules. As a check, it also estimates the slope from four points very close to a. If the two slopes do not agree, the page shows a warning.

  • If the tangent line is horizontal (slope 0), the normal line is vertical: x = a.
  • If the tangent line is vertical, the normal line is horizontal: y = f(a).

Worked example

Take y = x^2 at x = 1. The derivative is 2x. At x = 1, y = 1 and the slope of the tangent line is 2. The slope of the normal line is −1 ÷ 2 = −0.5.

The normal line is y − 1 = −0.5(x − 1), which is y = −0.5x + 1.5. The tangent line at the same point is y = 2x − 1.

Limits you should know

  • The function must be written with one variable and the functions listed above. Curves given by an equation in x and y together, such as x^2 + y^2 = 25, are not supported. For those, work out the slope yourself and use the second option.
  • If the function or its derivative has no real value at the point, the page says so. It does not show a huge number for a division by zero.
  • Decimal results are shown with 6 significant digits. When the function and the point use only whole numbers and fractions, the lines are exact.
  • The page does not draw the curve or the lines.

Related tools