Skip to content
    Calculus

    Simpson's Rule Explained with a Worked Example

    How do you find the area under a curve when no formula will give it to you? Simpson's Rule fits tiny parabolas to the graph and adds up their areas, and with just 4 strips it can land within 0.3% of the true answer. Here's how the 1-4-2-4-1 pattern works and how to use it.

    Math Solver Academic Editorial Board6 min read

    Key takeaways

    • Simpson's Rule: area ≈ (Δx ÷ 3) × [f(x₀) + 4f(x₁) + 2f(x₂) + … + 4f(xₙ₋₁) + f(xₙ)].
    • The number of strips N must be even, because each parabola covers two strips.
    • The weights go 1, 4, 2, 4, …, 2, 4, 1. The ends count once.
    • It is exact for any polynomial up to degree 3, such as x³.
    • The #1 mistake is dividing by 2 (the trapezoidal rule) instead of 3.
    In this guide
    1. 01What is Simpson's Rule?
    2. 02Why does Simpson's Rule matter?
    3. 03The formula
    4. 04How to use Simpson's Rule step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is Simpson's Rule?

    A definite integral is the area under a curve between two x-values, a and b. Sometimes you cannot find that area with a formula, or you only have measured data points. Then you approximate it: you get a very close estimate instead of an exact answer.

    Picture the region cut into thin vertical strips. The trapezoidal rule joins the tops of the strips with straight lines. Simpson's Rule does something smarter. It takes the strips two at a time and draws a small parabola (a U-shaped curve) through the three points on top. Curves hug curves much better than straight lines do, so the error shrinks fast.

    Why does Simpson's Rule matter?

    Many real integrals have no neat answer. The bell curve used in statistics is a famous example. And in real life you often don't have a formula at all, just readings: the width of a river every 2 metres, or the speed of a car every second. Simpson's Rule turns those readings into an area, a volume or a distance.

    It is also surprisingly accurate for very little work. Look at the area under y = x⁴ from 0 to 2. The exact answer is 6.4.

    Method (4 strips)EstimateError
    Trapezoidal rule7.06250.6625
    Simpson's Rule6.41670.0167
    Same four strips, same five points, but Simpson's Rule is about 40 times closer to the truth.

    The formula

    ∫ₐᵇ f(x) dx ≈ (Δx ÷ 3) × [f(x₀) + 4f(x₁) + 2f(x₂) + 4f(x₃) + … + 4f(xₙ₋₁) + f(xₙ)]
    SymbolWhat it meansExample
    a, bStart and end of the interval0 and 2
    NNumber of strips (must be even)4
    ΔxWidth of one strip: (b − a) ÷ N0.5
    x₀ … xₙThe points a, a + Δx, a + 2Δx, … up to b0, 0.5, 1, 1.5, 2
    f(x)Height of the curve at xf(1) = 1

    The weights follow the pattern 1, 4, 2, 4, 2, …, 4, 1. The two ends count once. Odd-numbered points (x₁, x₃, …) count 4 times. Even-numbered inside points (x₂, x₄, …) count 2 times.

    This calculator works with curves of the form f(x) = xᵖ, where you choose the power p. It also shows the exact answer, xᵖ⁺¹ ÷ (p + 1) between a and b, and the error, so you can see how good the estimate is. If you type an odd N, it adds 1 to make it even.

    How to use Simpson's Rule step by step

    1. 1Choose an even N. Then find the strip width Δx = (b − a) ÷ N.
    2. 2List the x-values. Start at a and add Δx each time until you reach b.
    3. 3Find the heights. Work out f(x) at every point.
    4. 4Apply the weights. Multiply by 1, 4, 2, 4, …, 4, 1 and add everything up.
    5. 5Multiply by Δx ÷ 3. That number is your estimate of the area.

    Now try your own curve. Change the power, the limits or N below and compare the estimate with the exact answer.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Calculus
    University

    Simpson's Rule

    Approximate ∫[a,b] xᵖ dx using Simpson's Rule. N must be even.

    ∫[a,b]f dx ≈ (Δx/3)[f(x₀)+4f(x₁)+2f(x₂)+…+4f(xₙ₋₁)+f(xₙ)]

    Area Under Curve ∫f(x)dx
    120
    120
    0.120
    120

    💡 Example

    Reference
    Inputs:p=4, a=0, b=1, N=4
    Result:0.2
    Open the full Simpson's Rule calculator

    Common mistakes to avoid

    • Using an odd N. Simpson's Rule needs pairs of strips. With N = 5 the 1-4-2-4-1 pattern breaks.
    • Mixing up the weights. Odd positions (x₁, x₃, …) get 4. Even inside positions (x₂, x₄, …) get 2. The two ends get 1.
    • Counting points instead of strips. N = 4 strips means 5 points, from x₀ to x₄.
    • Expecting an exact answer every time. It is exact for polynomials up to degree 3, but only approximate for x⁴ and beyond.

    Tips and tricks

    • Quick check: your weights should add up to 3N. For N = 4: 1 + 4 + 2 + 4 + 1 = 12 = 3 × 4.
    • Compare methods: run the same curve through the Riemann sum calculator to see how much better parabolas are than rectangles.
    • Know the true answer? Check it with the definite integral calculator.

    Where you'll use it in real life

    • Engineering: the area of a river's cross-section from depth readings taken at equal spacing.
    • Physics: distance travelled from a log of speed readings, since distance is the area under the speed graph.
    • Shipbuilding: naval architects have long used Simpson's Rule to find the areas and volumes of curved hulls.
    • Computing: calculators and software use rules like this to evaluate integrals that have no formula.

    Quick summary

    Simpson's Rule splits the area into an even number of strips, fits parabolas through each pair, and combines the heights with the weights 1, 4, 2, 4, …, 4, 1 times Δx ÷ 3. It is far more accurate than straight-line methods for the same effort. Use the calculator above to compare the estimate with the exact answer for any power of x.

    Worked example

    Your teacher asks you to estimate the area under y = x⁴ from x = 0 to x = 2 using Simpson's Rule with 4 strips, then compare it with the exact value. So p = 4, a = 0, b = 2 and N = 4, which gives Δx = 0.5.

    1. 01∫[0 to 2] x^4 dx using Simpson's Rule, N=4
    2. 02Δx = (2−0)/4 = 0.5
    3. 03S = (Δx/3)[f(x₀)+4f(x₁)+2f(x₂)+…+4f(xₙ₋₁)+f(xₙ)]
    4. 04≈ 6.4167
    5. 05Exact = 6.4
    6. 06Error = 0.0167

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    Why does Simpson's Rule need an even number of intervals?

    Each parabola passes through three points and covers two strips. To cover the whole interval with complete pairs, the number of strips must be even.

    Is Simpson's Rule more accurate than the trapezoidal rule?

    For smooth curves, usually yes. Its error shrinks roughly with Δx⁴, while the trapezoidal rule's error shrinks with Δx², so halving the strip width helps Simpson's Rule much more.

    When is Simpson's Rule exact?

    It gives the exact answer for any polynomial of degree 3 or less. For example, the integral of x³ from 0 to 2 is 4, and Simpson's Rule with N = 2 also gives exactly 4.

    Why is it sometimes called Simpson's 1/3 rule?

    Because of the Δx ÷ 3 factor in front. There is also a Simpson's 3/8 rule, which fits cubic curves through groups of three strips.

    #Calculus#University#Simpson's Rule
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX