Finite series partial sum
Check a partial sum without adding by hand: the arithmetic sequence starting at 2 with difference 3 gives 2, 5, 8, 11 and 14 for indexes 1 to 5, a total of 40. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- From
- 1
- To
- 5
- A
- 2
- D
- 3
- Term count
- 5
- Term formula
- a_k = 2 + (k - 1) * 3
- First term
- 2
- Last term
- 14
The partial sum from index from to index to is the accumulated total of every successive term in that closed range. Students meet arithmetic progressions, geometric progressions, and simple polynomial sequences early, then need a reliable check that their hand addition matches the formula they wrote.
What a partial sum is and how it is built
A series is the sum of the terms of a sequence, and a partial sum keeps only the terms between two chosen indexes, both included. Each term comes from a rule. In an arithmetic sequence you start from a first term and add the same difference each step; in a geometric sequence you multiply by the same ratio; in a polynomial sequence each term is a constant plus multiples of k, k squared and k cubed. The tool writes out that rule, works out every term in the range and adds them in order. For a first term of 2, a difference of 3 and indexes 1 to 5, the rule gives 2, 5, 8, 11 and 14, and the partial sum is 40.
When to use it and the slips it catches
It is meant for homework, exam keys and lesson notes, where you want one reliable total to compare with your own working. The usual mistakes are an index that is off by one, which adds or drops a whole term, a sign lost along the way, and geometric terms that grow much faster than expected. Seeing the term count, the first term and the last term next to the total makes those errors easy to spot: if you expected 5 terms ending in 14 and see something else, the bounds or the rule need another look.
What a partial sum of a finite series means
In introductory algebra and discrete math, a series is the sum of the terms of a sequence. When the sequence is finite, or when you only keep the first n terms of an infinite sequence, the result is a partial sum. Hand work fails when a sign is dropped, when the first index is off by one, or when geometric powers grow faster than expected.
Automating successive addition against validated finite parameters removes those slips while still exposing the pedagogical artifacts—the term formula string, the term count, and the first and last terms—so a solution write-up can mirror classroom steps without re-deriving every intermediate addend by hand each time you change the upper bound.
What you can do with it
Homework and exam keys
Confirm a student’s partial sum for an arithmetic or geometric sequence against one canonical total, term count, and first and last terms.
FAQ
How is the geometric term defined?
When k equals from the term is a. Successive terms multiply by r; the engine accumulates them one by one.
How do I find the sum of the first 5 terms of an arithmetic sequence?
Choose the arithmetic rule, enter the first term and the common difference, and set the indexes from 1 to 5. With a first term of 2 and difference 3, the terms are 2, 5, 8, 11 and 14, and the sum is 40.
Are both index bounds included?
Yes. Every whole index from the lower bound to the upper bound adds exactly one term, so indexes 1 to 5 give 5 terms. The upper bound must not be smaller than the lower one.
Can I sum a polynomial sequence like k squared?
Yes. Choose the polynomial rule and give up to four coefficients for the constant, k, k squared and k cubed terms. Any coefficient you leave out counts as zero.
How is this different from an infinite series sum?
It only adds a finite range of terms in order, so there is no question of convergence. You get the exact total of the terms you asked for, along with the first and last term to check your work.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/algebra/partial-sum-series \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"formula":"arithmetic","from":1,"to":5}'const res = await fetch("https://api.kit.forhosting.com/algebra/partial-sum-series", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"formula": "arithmetic",
"from": 1,
"to": 5
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/algebra/partial-sum-series",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"formula": "arithmetic",
"from": 1,
"to": 5
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/algebra/partial-sum-series", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"formula":"arithmetic","from":1,"to":5}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"formula":"arithmetic","from":1,"to":5}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/algebra/partial-sum-series", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"formula": "arithmetic",
"from": 1,
"to": 5
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "algebra.partial_sum_series",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
A finite series is a sum of a fixed number of terms written from a clear rule for the general term a_k. This capability accepts an explicit formula family, the inclusive index bounds, and the formula parameters, then adds each term in order and returns the partial sum together with first and last terms, the term count, and a short description of a_k.
What a partial sum of a finite series means
Writing S equals the sum from k equals from to k equals to of a_k makes the bounds explicit: every integer index in that closed interval contributes exactly one term, and the order of addition does not change the exact rational or real total for ordinary arithmetic. An explicit term formula tells you a_k without needing recursion: arithmetic sequences use a constant difference so a_k equals a plus (k minus from) times d; geometric sequences use a constant ratio so a_k equals a times r to the power (k minus from); polynomial formulas cover many textbook drills of the form c0 plus c1 times k plus c2 times k squared plus c3 times k cubed.
How this capability computes the answer
Arithmetic requires finite numbers a and d; geometric requires finite a and r; polynomial requires at least one of c0, c1, c2, or c3 as finite numbers, with omitted polynomial coefficients treated as zero. Geometric powers for moderate ranges are built by successive multiplication so the same inputs always produce the same floating-point path. You send a JSON body with a required formula string, arithmetic, geometric, or polynomial, plus integer from and to bounds with to greater than or equal to from. The engine accepts JSON numbers or plain numeric strings for coefficients, rejects missing required fields, booleans, objects, non-integers for indices, inverted ranges, and spans larger than ten thousand terms with invalid_input, and never charges those validation failures. It evaluates a_k at each index by the chosen explicit rule, adds successive terms into a running total, and returns formula, from, to, term_count, term_formula, first_term, last_term, partial_sum, the parameters that applied, and a terms array when the span has at most fifty terms. There is no randomness, no clock, and no network; identical inputs always yield identical JSON. The work is a short validation pass plus an O(n) accumulation loop, which sits inside the analytic cost model for this tier-A parse capability priced at $0.002 per successful request.
Where to use it and what it costs
The browser path runs locally and needs no account. Use the free browser tool for a single homework check or classroom demo, or call the API when a gradebook, tutor script, worksheet generator, or notebook must resolve many finite partial sums the same way every time. Typical placements include verifying student answers for S_n on arithmetic and geometric progressions, generating solution keys that list first and last terms beside the total, teaching how extending to changes the partial sum without rewriting the formula, and feeding a trusted partial_sum into a larger pipeline that already holds sequence parameters from a model or measurement. API usage draws from prepaid KIT balance at the published $0.002 base price per successful request; failed validation does not consume balance. Keep indices as integers, keep coefficients finite, prefer the server-computed partial_sum over re-adding with a different floating-point path in client code, and cap large ranges intentionally rather than summing millions of terms in a browser tab.
Integration use cases
Worksheet and drill generators
Vary from and to for the same explicit formula and store partial_sum plus term_formula next to each generated item id.
Tutor and gradebook scripts
Batch many finite series through the API and compare learner answers to the returned partial_sum without reimplementing accumulation.
Technical questions
How do I compute a finite series partial sum with this API?
POST JSON with formula (arithmetic, geometric, or polynomial), integer from and to, and the matching parameters (a and d; a and r; or at least one of c0–c3). The response includes partial_sum, term_count, and first_term / last_term.
What does the arithmetic formula a_k = a + (k − from) × d mean?
At the lower index, a_from equals a. Each step up in k adds the common difference d once. The partial sum adds every a_k from from through to inclusive.
Is the finite series partial sum calculator free?
The browser widget is free and runs locally. API calls use prepaid KIT balance at the published $0.002 base price; invalid input is not charged.
Is the result always the same for the same inputs?
Yes. The algorithm is pure analytic successive addition with no randomness or timestamps, so identical formula parameters and bounds produce identical JSON.