# Excess-3 Code in Digital Electronics

Excess-3 code is an example of unweighted code. Excess-3 equivalent of a decimal number is obtained by adding 3 and then converting it to a binary format. For instance to find excess-3 representation of decimal number 4, first 3 is added to 4 to get 7 and then binary equivalent of 7 i.e. 0111 forms the excess-3 equivalent.

Below is  table representing excess-3 equivalent of decimal numbers (0-9):

 Decimal Number Excess-3 Equivalent 0 0011 1 0100 2 0101 3 0110 4 0111 5 1000 6 1001 7 1010 8 1011 9 1100

Excess-3 code is also known as self complimenting code or reflective code, as 1′s compliment of any number (0-9) is available within these 10 numbers. For example 1′s complement of 9 (1100) is 0011.

## Addition of two numbers in Excess-3 Code

Let’s understand it by taking few examples:

Example 1:

The result 1101 is in excess-6. To obtain an excess-3 equivalent, binary 3 needs to be subtracted from the result as below:

Example 2:

Considering that 4 leftmost significant bits form column 1 and 4 rightmost significant bits form column 2. If carry is generated in addition, excess-3 equivalent is obtained by adding binary equivalent of 3 to the column generating carry and subtracting binary equivalent of 3 from the column that doesn’t generate any carry.

In this example, carry is generated by column 1 and no carry is generated by column 2. Thus, excess-3 equivalent is calculated as follows:

For excess-3 addition of decimal numbers, first convert the decimal numbers into binary and then perform the addition as explained above.

Hope you find the information presented here useful. Feel free to leave your footprints in the comments section below for any queries or suggestions.

1. To the condition and written well, tyvm to the info.

2. thanks 4 helping in such a simple and perfect way.

3. I have one query i.e why we go for Excess 3 code ? Is binary code not sufficient? plz reply me

• Hi Girish,

Excess-3 code is binary only. Binary means any number can be represented using 0 and 1. As defined by Wiki, Excess-3 binary-coded decimal code is also called as biased representation. It was used on some older computers with a pre-specified number 3 as a biasing value. It is a way to represent values with a balanced number of positive and negative numbers.
The advantage of excess-3 code over bcd code is that it is easy to find 1′s complement (just by inverting bits) for binary numbers for subtraction.

Let us know if you have further queries on this. Thank you for stopping by.

4. ….i don’t understand the meaning of excess 3 code.can i get daily update on that through this email:dynamicrich4u@yahoo.com

• Hi Okezie,

Do let us know if above post help you to understand excess-3 code to some extent?

Thanks

5. Hi,
Please explain this to me.
My understanding is that i
can add a 3 to any number and
convert to binary. What kind of
Numbers am I allowed to add a 3
To?

• Hi Mots,

Your understanding is correct. Just to be precise, you can add 3 to any “decimal” number and convert it to binary. So in your words, you are allowed to add a 3 to decimal number to get it’s excess-3 equivalent.

Hope that helps. Let us know.

6. Hi Rishwa,

For an Excess-N number, N is the excess amount and N is added to the decimal number. Similarly, for an Excess-3 number, 3 is the excess amount and hence 3 is added to the decimal number to get an excess-3 equivalent.

Regards

7. Its simple…!! thanks for that……!

But why to add 3 to the column generating carry and subtract 3 to the column with no carry generated ????

8. it is difficult to write 45326 equivalent binary number
so we use BCD(binary coded decimal number)
decimial (0-9) will represent in binary
so 4 5 3 2 6
0100 0101 0011 0010 0110
if we know 0t0 9 equivalent binary number we can represent any number

9. Hi Lavaynya,

We have provided only a snapshot of excess-3 codes here. You surely can write excess-3 codes for numbers greater than 9.

Let us know for any further queries.

10. thanks!!! for simplifying it all…. loving this electronics stuff now

11. Hi Amit,

We have explained above to Rishwa:

For an Excess-N number, N is the excess amount and N is added to the decimal number. Similarly, for an Excess-3 number, 3 is the excess amount and hence 3 is added to the decimal number to get an excess-3 equivalent.

Regards

12. hii,
plz exaplain what is excess-3 code
explain with many example

13. what is excees -3 code
explain with some many example

14. thats so simple lamguage easly understand .thanks

15. Whats the main use of excess 3 code in digital elecronics? Is there a similarity between excess 3 code and parity bits?

16. Hi Rohit,

We have explained in the post above. Please let us know of any specific queries you have.

Regards

17. if we try to find excess 3 code of 108 by adding 333 to it we get answer 010001000001 but on the another way if i firrt convert 108 into excess 3 nd them add binary equivalent of 3 into it then answer will be 010000111011 then my question is that why such diff. is come ie one method is wrong then plz tell me which method is write

18. Hi Rajni,

You should first find excess-3 equivalent of 108 and 333. Now add excess-3 equivalents of 108 and 333 and adjust the sum as shown in example 1 and 2 above.

Regards

19. Won’t inverting the bits of Excess-3 give the 9′s compliment of a number (and not the 1′s compliment)?