Constant Rule Notes

Published on: September 29, 2026

These Constant Rule Notes explain how to differentiate a plain number, with the working shown line by line. A constant function never changes as x moves, so its rate of change is zero no matter how large the constant is. That is why the answer is always zero rather than the constant itself. Following the same pattern every time makes the reasoning behind a zero derivative explicit instead of memorised.

Step-by-step method

  1. Set up the problem.
  2. Write the constant rule formula.
  3. Apply the constant rule.

Formula: Constant Rule

The derivative of a number on its own is 0, because a constant never changes.

\(\frac{d}{dx}c = 0\)

Useful Tips to Remember

The derivative of any constant is zero, \(\frac{d}{dx}c = 0\), because a constant never changes. This includes numbers like \(\pi\) and \(e\), which are constants, not variables. A constant added to a function disappears when you differentiate, but a constant multiplying a function stays. A horizontal line has a gradient of zero everywhere.

Required knowledge

  • No prerequisite knowledge is needed.

Where Is the Constant Rule Used?

The constant rule says that the derivative of a constant is zero, because a value that never changes has no rate of change. It explains why fixed costs disappear when finding marginal cost, and why the starting height of a falling object does not affect its speed. Every time a function has a constant term, such as the \(+5\) in \(x^2 + 5\), this rule removes it from the derivative. It is also the reason a constant of integration appears when working backwards, since many functions share the same derivative.

  • Removing fixed costs when finding marginal cost in economics
  • Ignoring a starting height when finding velocity
  • Differentiating the constant terms of polynomials
  • Understanding why integration needs a \(+C\)
  • Checking that a flat graph has a gradient of zero

Constant Rule Practice Problems

Example 1 differentiates \(f(x) = 5\), and Example 2 differentiates the fraction \(f(x) = \frac{7}{2}\). Examples 3 and 4 give you two more of the same kind to try, \(f\left(x\right) = 9\) and \(f\left(x\right) = - \frac{5}{3}\). Try each one yourself before opening the examples.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(f\left(x\right) = 5\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the constant rule formula.
  3. Apply the constant rule.

Formula

Formula: Constant Rule

The derivative of a number on its own is 0, because a constant never changes.

\(\frac{d}{dx}c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are given \(5\). This expression does not contain \(x\), so it is a constant.

\(f\left(x\right) = 5\)

Step 2

Step 2 - Write the constant rule formula.

In this problem: The constant rule says the derivative of any constant is \(0\).

\(\frac{d}{dx}c = 0\)

Step 3

Step 3 - Apply the constant rule.

In this problem: Since \(5\) is constant, its derivative is \(0\).

\(\frac{d}{dx}\left(5\right) = 0\)

Final Answer

\(f'\left(x\right) = 0\)
See Example 2 Hide Example 2

Problem

\(f\left(x\right) = \frac{7}{2}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the constant rule formula.
  3. Apply the constant rule.

Formula

Formula: Constant Rule

The derivative of a number on its own is 0, because a constant never changes.

\(\frac{d}{dx}c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are given \(\frac{7}{2}\). This expression does not contain \(x\), so it is a constant.

\(f\left(x\right) = \frac{7}{2}\)

Step 2

Step 2 - Write the constant rule formula.

In this problem: The constant rule says the derivative of any constant is \(0\).

\(\frac{d}{dx}c = 0\)

Step 3

Step 3 - Apply the constant rule.

In this problem: Since \(\frac{7}{2}\) is constant, its derivative is \(0\).

\(\frac{d}{dx}\left(\frac{7}{2}\right) = 0\)

Final Answer

\(f'\left(x\right) = 0\)
See Example 3 Hide Example 3

Problem

\(f\left(x\right) = 9\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the constant rule formula.
  3. Apply the constant rule.

Formula

Formula: Constant Rule

The derivative of a number on its own is 0, because a constant never changes.

\(\frac{d}{dx}c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are given \(9\). This expression does not contain \(x\), so it is a constant.

\(f\left(x\right) = 9\)

Step 2

Step 2 - Write the constant rule formula.

In this problem: The constant rule says the derivative of any constant is \(0\).

\(\frac{d}{dx}c = 0\)

Step 3

Step 3 - Apply the constant rule.

In this problem: Since \(9\) is constant, its derivative is \(0\).

\(\frac{d}{dx}\left(9\right) = 0\)

Final Answer

\(f'\left(x\right) = 0\)
See Example 4 Hide Example 4

Problem

\(f\left(x\right) = - \frac{5}{3}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the constant rule formula.
  3. Apply the constant rule.

Formula

Formula: Constant Rule

The derivative of a number on its own is 0, because a constant never changes.

\(\frac{d}{dx}c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are given \(- \frac{5}{3}\). This expression does not contain \(x\), so it is a constant.

\(f\left(x\right) = - \frac{5}{3}\)

Step 2

Step 2 - Write the constant rule formula.

In this problem: The constant rule says the derivative of any constant is \(0\).

\(\frac{d}{dx}c = 0\)

Step 3

Step 3 - Apply the constant rule.

In this problem: Since \(- \frac{5}{3}\) is constant, its derivative is \(0\).

\(\frac{d}{dx}\left(- \frac{5}{3}\right) = 0\)

Final Answer

\(f'\left(x\right) = 0\)

Calculator and Practice Mode