What is L’Hospital’s Rule?

L’Hospital’s Rule is a method for finding the value of certain kinds of limits using derivatives. The rule is named after Guillaume de l’Hospital (or l’Hôpital), which is a French name, pronounced low-pee-tal (NOT le Hoss-pih-tal).


Guillaume de l'Hospital

L’Hospital’s Rule

If f(x)/g(x) has the form 0/0 or ∞/∞ when x = a is plugged in, then:

L'Hospital's Rule

In other words, take the derivative of the numerator (top) and the derivative of the denominator (bottom), and then try computing the limit.

Using L’Hospital’s Rule

In order to use l’Hospital’s Rule, you must first check to see that your limit has the right form.

First of all, it must be a fraction of two functions, f(x) / g(x) in order to apply the rule.

Secondly — and this is crucial! — when you plug in the given x-value, the fraction must either evaluate to 0/0 or ∞/∞. These are two types of indeterminate forms. If your limit problem is not in an indeterminate form, then you can’t use this method directly.


Let’s see how l’Hospital’s Rule works in the following two examples.

Example 1

Limit Example 1

After plugging in x = 0, we find the indeterminate form, 0/0. So l’Hospital’s Rule can be used. Just take the derivative of the top and the derivative of the bottom. Afterwards, try plugging in the x value again.

Limit Example 1 solution

Example 2

Limit Example 2

L’Hospital’s Rule works just as well in limits as x → ± ∞. Notice, the indeterminate form this time is ∞/∞.

But there’s another interesting feature about this example. After using the rule once, the limit still has indeterminate form (∞/∞). Therefore, we can use the rule once again.

Limit Example 2 solution

In general, l’Hospital’s Rule may be repeated as many times as necessary, as long as there is an indeterminate form at each stage.

Functions that are not Fractions

Sometimes a limit problem comes along that seems impossible to do. Standard algebraic techniques may not work. If the function had a fractional form, then we could use l’Hospital. But what if the function is not even a fraction?

There are certain algebraic manipulations that can force an expression to be a fraction. When done correctly, l’Hospital may be used on the result.

Forcing a Fraction

Here is an example in which we change a product into a fraction using a standard algebraic trick.

Example 3

Limit Example 3

This time we didn’t start with a fraction. But if you rewrite x2 = 1/x -2 using negative exponents, then we can force the function to take the form of a fraction. Then use l’Hospital’s Rule on the result.

Limit Example 3 solution


When a limit problem involves a fraction of two functions, then try L’Hospital’s Rule. Don’t forget to check whether it’s an indeterminate form first. With this powerful tool in your toolbox, limits on the AP Calculus exams just got a whole lot easier!

Improve your SAT or ACT score, guaranteed. Start your 1 Week Free Trial of Magoosh SAT Prep or your 1 Week Free Trial of Magoosh ACT Prep today!

magoosh logo checks


  • Shaun Ault

    Shaun earned his Ph. D. in mathematics from The Ohio State University in 2008 (Go Bucks!!). He received his BA in Mathematics with a minor in computer science from Oberlin College in 2002. In addition, Shaun earned a B. Mus. from the Oberlin Conservatory in the same year, with a major in music composition. Shaun still loves music -- almost as much as math! -- and he (thinks he) can play piano, guitar, and bass. Shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!

By the way, Magoosh can help you study for both the SAT and ACT exams. Click here to learn more!

No comments yet.

Magoosh blog comment policy: To create the best experience for our readers, we will only approve comments that are relevant to the article, general enough to be helpful to other students, concise, and well-written! 😄 Due to the high volume of comments across all of our blogs, we cannot promise that all comments will receive responses from our instructors.

We highly encourage students to help each other out and respond to other students' comments if you can!

If you are a Premium Magoosh student and would like more personalized service from our instructors, you can use the Help tab on the Magoosh dashboard. Thanks!

Leave a Reply