Calcupedia

Consecutive Integers Calculator

Math

Find n consecutive integers that add up to a given sum.

Ad · Billboard
11,000
-1,000,000,0001,000,000,000

Smallest Integer

13.0000

The smallest of the n consecutive integers, x = (S - n(n-1)/2) / n.

Largest Integer

15.0000

The largest of the n consecutive integers.

Share result
Reload calculator
Clear inputs

Found this calculator useful?

From Scratch To $10K/Month In 60 Days

This is a proven money making system that takes students by the hand to make at least $10,000 per month, every month. Students get 12 weeks of guided coaching in addition to the "MPS Super Funnel" and tools.

We value your privacy and promise not to sell or misuse your information. Here's our privacy policy.

Calculator Stats

Odeh Ahwal

Creators

Odeh Ahwal
Reviewed and verifiedThis calculator was reviewed and verified by the Calcupedia due diligence team.

0people find this calculator helpful

Views

Helpful

Saved

Embeds

Like
Share
Embed this calculator
Cite
Save
Ad · 300×250
Ad · 300×250

Frequently Asked Questions

How is the formula for consecutive integers derived?

If x is the smallest of n consecutive integers, they are x, x+1, x+2, ..., up to x+(n-1). Adding them all together gives n*x plus the sum 0+1+2+...+(n-1), which equals n(n-1)/2. Setting this equal to the target sum S and solving for x gives x = (S - n(n-1)/2) / n.

What if the result is not a whole number?

That means no set of n consecutive whole integers adds up to exactly that sum. For example, no two consecutive integers can sum to an odd number, since one is always even and one odd, so the smallest-integer result would come out as a non-integer.

Does this work for consecutive even or odd integers too?

Not directly, this calculator solves for plain consecutive integers stepping by 1. Consecutive even or odd integers step by 2 instead, which changes the underlying formula.

Spot a mistake? Tell us what's wrong.

Don't see what you need?

Request a calculator. The most-requested ones get built first in our monthly batch.

Request a calculator

Want this calculator on your website?

Embed the Consecutive Integers Calculator on any site — no code needed. Customize colors, remove branding, and track usage.

Embed it free →
Embed on any platform — Next.js, React, Vue.js, PHP, Laravel, Shopify, Wix, Webflow, Squarespace, and more