Blog · Calculus guides · 23 October 2026 · 4 min read
L'Hôpital's Rule: Steps, Examples & Practice Problems

L'Hôpital's rule says that if a limit of comes out as or , you can replace it with the limit of , differentiating the top and the bottom separately. If the new limit exists, it is the answer. For example, .
The formula
Named after the Marquis de L'Hôpital, who published it in 1696. He had paid Johann Bernoulli for his discoveries, so it is arguably the first calculus result that was bought rather than found.
When to use it
Use L'Hôpital's rule when substituting the limit point gives or , and the usual tricks do not apply easily: there is a trig function, an exponential or a logarithm in the mix, so you cannot just factor and cancel. Always substitute first. If you get an actual number, that is the limit and you are finished. If you get something like , the limit is infinite or does not exist, and the rule does not apply. Other indeterminate forms, and , can be rearranged into a fraction first, and then the rule works on them too.
How to do it, step by step
- Substitute first. Plug the limit point into the top and the bottom. Only carry on if you get or .
- Differentiate the top and the bottom separately. This is not the quotient rule. Top's derivative over bottom's derivative, nothing else.
- Substitute again. If you get a number, that is your answer.
- Repeat if it is still indeterminate. If the new fraction is still , apply the rule again. Check every time; the moment it stops being indeterminate, stop.
Worked examples
Example 1: A trig limit at zero
EasyFind:
Substitute: on top and on the bottom, so it is and the rule applies.
The top differentiates to (the chain rule puts the 3 in front) and the bottom to .
Answer
Example 2: A logarithm at one
MediumFind:
Substitute: and . It is again.
Top: . Bottom: .
Factoring would not have helped here, since has nothing to cancel with . This is exactly the kind of limit the rule is for.
Answer
Example 3: Zero times infinity
HarderFind:
As , but . That is , which is indeterminate, but it is not a fraction, so the rule cannot be used yet.
Rewrite it as a fraction by moving to the bottom as . Now it is :
Differentiate the top and the bottom: over , which simplifies to .
Which way you rewrite matters. Putting on the bottom instead, as , also gives , but its derivatives get worse every round. If the rule makes things messier, flip the fraction.
Answer
Your turn
Three to try, checked by the same machine that grades the game. Type the answer however you like; any correct form counts.
Problem 1
EasyFind the limit:
Problem 2
MediumFind the limit:
Problem 3
HarderFind the limit:
Common mistakes
- Using it when the limit is not indeterminate. is just . Differentiating anyway gives , which is wrong. Substitute first, every time.
- Using the quotient rule instead. You differentiate the top and bottom separately. The quotient rule is for differentiating a fraction, which is a different question.
- Not checking before the second round. After one application, substitute again. Applying the rule to something that is no longer gives a wrong answer with total confidence.
- Forgetting the chain rule on the top or bottom. . Lose that 3 and you get instead of .
Practice it now
Five minutes, no account
L'Hôpital limits arrive in a Sprint at difficulty 5 to 7: sines, tangents, , and logarithms over a multiple of at zero, plus at one. Earlier, at 3 and 4, come fractions of polynomials, where the rule works too but factoring is usually quicker.
FAQ
- When can you use L'Hôpital's rule?
- Only when direct substitution gives or . Forms like , , , and need rearranging into one of those two first (the last three by taking logs).
- Can you use L'Hôpital's rule twice?
- Yes, as often as you need, as long as you check it is still indeterminate each time. goes to , still , then to , which is .
- Do you need L'Hôpital's rule for limits at infinity?
- It works there, but for rational functions it is overkill. Comparing the highest powers is faster: see limits at infinity. In our answer data players get 92% of those right without it.
- Are L'Hôpital limits harder than ordinary limits?
- Not in practice. Players get 84% of L'Hôpital problems right, against 77% for limits done by plain substitution, which look easier and are not. Once you have checked the , the rule is mechanical, which is a lot of its charm. For polynomial fractions, though, factoring and cancelling is usually quicker.
- Where can I find L'Hôpital's rule practice problems?
- Right on this page: "Your turn" has three L'Hôpital's rule practice problems, easy, medium and harder, checked as you type by the same checker that grades Asymptote, with the answer and the first step if you miss. For more practice against the clock, a five-minute Sprint is free and needs no account.
Keep going
Power Rule: Derivatives, Examples & Practice Problems
How to differentiate x^n with the power rule, including roots, fractions and negative powers: three worked examples and three practice problems.
U-Substitution: Steps, Examples & Practice Problems
How to integrate by u-substitution: choosing u, the four steps, three worked examples including a back-substitution, and three practice problems.
Implicit Differentiation: Steps, Examples & Practice Problems
How to find dy/dx when y is not on its own: implicit differentiation in four steps, three worked examples, tangent lines and three practice problems.