Consecutive Integers Calculator

Consecutive Integers Calculator

Find consecutive integers that sum to a target value.

Last updated: June 2026 | By Patchworkr Team

Sequence Solver

Empty fields are rejected. The count must be a positive whole number.

Result
4+
5+
6
= 15
First Integer
4
Last Integer
6

What are consecutive integers?

Consecutive integers differ by 1. This calculator works backward from a target sum and a count to find the first integer, if one exists.

How to Use It

  1. Enter the target sum.
  2. Enter how many integers you want.
  3. Read the consecutive integers or the no-solution message.

Formula

First integer = (sum - n(n - 1)/2) / n

Can the integers be negative?

Yes. Consecutive integers can be any whole numbers, including negative values.

Why might there be no solution?

Not every target sum and count combination produces an integer first term.

Can I use decimal inputs?

No. The calculator expects whole numbers only and rejects decimal input.

What if the count is zero or negative?

That is rejected before calculation because a sequence needs a positive count.

Related Tools