CalcSeed

Checksum Calculator

Enter three numbers to get their sum and a simple 8-bit checksum using modulo 256.

=
Quick answer: with the default inputs (100, 50, 25), the checksum is 175. At these inputs: sum = 175. Change any input to update the result.
Checksum
—

What the calculator returns

You enter three numbers and get their plain sum plus an eight-bit checksum, which is the sum reduced modulo 256. The defaults 100, 50 and 25 add to 175, and because 175 is already below 256 the checksum is also 175.

The two outputs differ only when the sum reaches 256 or more. That is the entire mechanism: a total that can grow arbitrarily, reduced to a value that fits in a single byte.

The formula

c=(a+b+d)mod256c=(a+b+d)mod 256

Modulo means the remainder after division. A sum of 350 divided by 256 leaves 94, so the checksum is 94. A sum of exactly 512 leaves 0, so the checksum is 0. The result always lands in the range 0 to 255, which is exactly the range of an unsigned byte.

The number 256 is not arbitrary. Eight bits hold 256 distinct patterns, so taking the remainder mod 256 is the same as keeping the low eight bits of the sum and discarding everything above. In code that is often written as a bitwise AND with 0xFF rather than a division.

Worked example: 100, 50 and 25

Add the three inputs: 100 + 50 + 25 = 175. Divide 175 by 256: the quotient is 0 and the remainder is 175. Since no wrap occurred, the checksum equals the sum, and both outputs read 175.

  • Sum: 100 + 50 + 25 = 175
  • 175 ÷ 256 = 0 remainder 175
  • Checksum: 175, which fits in one byte
  • Change any input by 1 and the checksum changes by 1 as well

Now push the same three inputs higher. At 200, 100 and 50 the sum is 350, and 350 − 256 = 94, so the checksum drops to 94 even though the sum went up. This wrap is not a bug; it is the price of fitting into a fixed width, and the receiver has to apply the same reduction to compare.

Sums and their checksums

SumWrap countChecksum
1750175
2550255
25610
300144
5111255
51220
1,0003232

The wrap count is the quotient and the checksum is the remainder, so the pair always reconstructs the sum: 3 × 256 + 232 = 1,000. If you keep both numbers you have lost nothing; if you keep only the remainder you have compressed the total into one byte and accepted that many different sums now look identical.

Why eight bits

A checksum travels alongside the data, so it should cost as little as possible. One byte per message is the smallest useful size, and it pairs naturally with byte-oriented protocols where headers are already counted in bytes. Larger widths detect more, at the cost of more bytes on the wire.

The choice of 256 also matches how the arithmetic behaves in a byte register. Adding two bytes on an eight-bit machine sets a carry flag and leaves an eight-bit result, which is modulo 256 by construction. The checksum is what the hardware does for free, rather than something the programmer has to arrange.

What this checksum cannot catch

Addition is commutative, so the order of the inputs is invisible. Swapping 100 and 50 in the default example leaves the sum at 175 and the checksum unchanged. Any protocol that needs to detect reordering requires a scheme that weights each position, such as Fletcher or Adler.

Two errors that cancel also pass. If one byte goes up by 10 and another goes down by 10, the sum is unchanged and the receiver sees a valid checksum. Single-bit flips are caught, because a flip changes the sum, but the strength stops there. About one in 256 random corruptions will produce a matching checksum by chance.

Position blindness in practice

The blindness to order shows up as a real failure mode in records where fields can be transposed. A stored record of amount, tax and total can swap amount and tax and still checksum correctly, which is why financial formats use positional or polynomial checks rather than a plain sum.

What real systems use instead

CRC-32 computes a polynomial division over the data and catches every burst error up to 32 bits plus a large share of longer ones, which is why it guards Ethernet frames and zip archives. Adler-32 adds two running sums modulo 65,521 and is cheaper to compute in software. Fletcher checksums use a similar pair of sums to restore position sensitivity.

None of these are secure. SHA-256 and its relatives are cryptographic hashes, designed so that finding two inputs with the same digest is computationally infeasible. A checksum answers the question of whether the data arrived intact; a hash answers the question of whether it was tampered with. Using a checksum for the second job is a category error.

  • CRC-32: polynomial division, 32-bit result, standard in zip and Ethernet
  • Adler-32: two running sums modulo 65,521, fast in software
  • Fletcher: position-sensitive sums, used in some tape and network formats
  • SHA-256: 256-bit cryptographic digest, tamper evident rather than error catching

Where the arithmetic bites

Accumulator width and byte order

In languages with fixed-width integers, the sum may overflow before the modulo is applied. An eight-bit unsigned accumulator wraps automatically and gives the right answer; a signed eight-bit accumulator wraps at 127 and produces a negative value instead. Widening to 16 or 32 bits and reducing at the end avoids the surprise.

The other trap is comparing checksums as text. 0x0F and 0x00F are the same byte, but a string comparison says they differ. Compare the numeric value, or normalise the formatting to two hex digits before you compare.

Frequently asked questions

What is the checksum of 100, 50 and 25?

175. The sum is 175 and it is below 256, so no reduction occurs and the checksum equals the sum.

What does modulo 256 mean?

Divide by 256 and keep the remainder. The result is always between 0 and 255, which is the range of one byte, so 350 becomes 94.

Why 256 and not 100?

Because a byte holds 256 distinct values. Reducing mod 256 keeps the low eight bits, which is exactly what an eight-bit register does when it overflows.

Can this checksum detect a swapped pair of values?

No. Addition is commutative, so 100 + 50 + 25 and 50 + 100 + 25 both give 175. Detecting reordering needs a positional scheme such as Fletcher or Adler.

What is the checksum of 200, 100 and 50?

94. The sum is 350, and 350 − 256 = 94, so one wrap occurs and the low byte remains.

Is a checksum the same as a hash?

No. A checksum detects accidental corruption and is not designed to resist tampering. A cryptographic hash such as SHA-256 is built so that forging a matching digest is impractical.

How much data can a checksum protect?

Only the three numbers you enter here. For a real message you would sum every byte, which is the same rule applied to a longer list.

What does a checksum of 0 mean?

The sum was an exact multiple of 256, such as 256 or 512. It does not mean the data was empty; it means the low eight bits happened to be zero.

Why is CRC better than a simple sum?

CRC-32 treats the data as a polynomial and detects every burst error up to 32 bits, while a plain sum misses any pair of errors that cancel or any reordering.

Does the checksum change if I add 256?

No. Adding 256 to any input leaves the remainder unchanged, which is why the checksum cannot distinguish sums that differ by a multiple of 256.

Method and sources

Calculation basis

Conversions and formats follow the relevant IETF RFCs and IEEE standards, including RFC 4648 for Base64 and RFC 791 for IPv4 addressing.

Last updated: November 17, 2026
Formula & data sources
  • Simple 8-bit checksum: sum of inputs modulo 256.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Checksum Calculator. https://calcseed.com/c/developer/checksum-calculator/
MLA 9"Checksum Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/developer/checksum-calculator/.
ChicagoCalcSeed. "Checksum Calculator." Last modified November 17, 2026. https://calcseed.com/c/developer/checksum-calculator/

Related calculators

More Developer calculators