Skip to content
● Numerical Integration

Trapezoidal Rule Calculator

Approximate a definite integral by dividing the interval into trapezoids. Enter a function, limits, and number of subintervals to see the estimate, step size, table, and graph.

STEP 01Enter the function

Use x with operators such as +, −, *, /, ^, sin, cos, exp, or sqrt.

STEP 02Set the interval

Provide the lower limit a, upper limit b, and number of trapezoids n.

STEP 03Calculate the estimate

Review the trapezoidal approximation, graph, and evaluation table.

Approximate integral
0.34375
trapezoidal estimate
Step size
0.25
h = (b − a) / n
Subintervals
4
number of trapezoids
Function calls
5
n + 1 sample points
Trapezoidal rule input
f(x)=
T₄ = 0.34375
Approximation result
Trapezoidal estimate
0.34375
Weighted sum
2.75
Trapezoidal rule formula
Tₙ = h/2 [f(x₀) + 2Σf(xᵢ) + f(xₙ)]
h = (b − a) / n
How the calculation works

For f(x) = x² on [0, 1] with n = 4, the step size is h = 0.25. The weighted function sum is 2.75, so T₄ = 0.25 ÷ 2 × 2.75 = 0.34375.

Evaluation table
Pointxᵢf(xᵢ)WeightWeighted value
Frequently asked questions
What is the trapezoidal rule?

It is a numerical integration method that approximates the area under a curve by connecting adjacent sample points with straight lines and summing the resulting trapezoids.

Does increasing n improve accuracy?

Usually yes. More subintervals create narrower trapezoids, which generally follow a smooth curve more closely.

Which functions can I enter?

You can use x, numbers, parentheses, powers with ^, and common functions including sin, cos, tan, sqrt, abs, exp, log, and ln.

Is the result exact?

No. The result is an approximation. Accuracy depends on the function, interval, and number of subintervals.

Math Calculation Disclaimer

Results are estimates generated locally in your browser using standard mathematical formulas. They are for informational and educational purposes only and are not a substitute for verification in coursework, examinations or professional contexts requiring certified accuracy. VisionVix accepts no liability for decisions based on this tool's output.

ⓘ Trapezoidal Rule Calculator Disclaimer
This calculator provides numerical approximations for educational and general analytical use. Verify results independently for precision-critical scientific or engineering work.
Share this Trapezoidal Rule CalculatorCopy a direct link to send to a colleague, client or student.
🎁 WELCOME GIFT

🎁 Get 5 FreeAI Credits

Leave your email and get 5 free credits on VisionVix — our AI agent marketplace with 500+ tools. Plus, be first to know when new calculators go live here. No spam, ever.

Thanks — your credits are being prepared.

Credits added to your VisionVix account within 24 hours.
VisionVix AI agent dashboard on a laptop

500+ AI Agents

📊

Smart Calculators

🔔

Early Access

🛡️

No Spam, Ever