Skip to content
BetterDL

Carry-out

Also called: carry out, end carry, Cout, output carry

The carry produced by the most significant column of an addition, the bit that doesn't fit in the result. For unsigned addition, carry-out 1 means overflow.

When you add two n-bit numbers, the top column can produce a carry with nowhere to go. That bit is the carry-out. In an adder circuit it's the final carry Cₙ (C4 in a 4-bit adder), the Cout of the top full adder.

The word is also used for a single stage: each full adder has a carry in and a carry-out, and the carry-out of bit i feeds the carry-in of bit i + 1.

What the final carry-out tells you depends on the operation and the format:

  • Unsigned addition: carry-out 1 means the true sum needed n + 1 bits. That's unsigned overflow.
  • Unsigned subtraction done as A + (inverted B) + 1: carry-out 1 means no borrow (A ≥ B), and 0 means a borrow (A < B).
  • Two's complement: the carry-out alone means nothing. −1 + −1 carries out and is perfectly correct. Signed overflow compares the carry into the MSB with the carry out of it.

Processors store the carry-out in the carry flag C after each addition, so software can test it or feed it into the next addition when adding numbers wider than the adder.

1
16
0
8
0
4
1
2
1
1

Worked example

Example

Carry-out in 1101 + 0110

A 4-bit addition, read both ways.

  1. 1.

    Bit 0: 1 + 0 = 1. Bit 1: 0 + 1 = 1.

  2. 2.

    Bit 2: 1 + 1 = 10₂. Write 0, carry 1.

  3. 3.

    Bit 3: 1 + 0 + 1 = 10₂. Write 0, carry-out 1.

  4. 4.

    The 4 bits are 0011 with carry-out 1.

  5. 5.

    Unsigned: 13 + 6 = 19 doesn't fit, and the 4 bits show 19 − 16 = 3. Overflow.

  6. 6.

    Signed: −3 + 6 = 3, and 0011 = 3. Correct, despite the carry-out.

Common mistakes

  • Treating a carry-out as signed overflow.

  • Including the carry-out in an n-bit result when the question asks for n bits.

  • Reading carry-out 1 after a subtraction as a borrow. With the add-the-complement method it means no borrow.

Practice Carry-out

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Carry-out is taught in Number Systems and Adders and ALUs.