When the sum of 2 numbers is too large to contain, an overflow occurs. Here are 2 ways of detecting overflow:
Example: Adding the $6$-bit numbers $18_{10} = 010010_2$ and $23_{10} = 010111_2$:
0 1 11 <-- carry bits
010010 <-- Positive
+ 010111 <-- Positive
______
101001 <-- Negative?!?! We got overflow!