Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

Number system Arithmetic – Addition & Subtraction

YASH PAL, April 3, 2022April 24, 2026

Number System Arithmetic – The most common Number system arithmetic operations are addition, subtraction, multiplication, and division. We are all familiar with these arithmetic operations on decimal numbers. The same operations can be performed on binary, octal, and hexadecimal numbers.

Table of Contents

  • Number system Arithmetic
    • Binary Number Arithmetic
      • Binary Subtraction
      • 2’s complement Method
    • Octal Number Arithmetic
    • Hexadecimal Number Arithmetic
      • Example of hexadecimal addition

Number system Arithmetic

Here are the Arithmetic types that can be performed in the computer:

  1. Binary arithmetic
  2. Octal arithmetic
  3. Hexadecimal arithmetic

Binary Number Arithmetic

Binary arithmetic is much simpler than decimal arithmetic because only two digits, 0 and 1, are involved.

Binary addition – For binary addition, we have to remember some rules that are given in the table below.

AugendAddendSumCarry
0000
0110
1010
1101

Example of binary addition

Add the following binary numbers.

1011 and 1100

               1  0  1  1

         (+) 1  1  0  0

       _____________

Carry(1) 0  1  1  1

So the addition of both numbers 1011 and 1100 is 10111. Here, that last number 1 is th carry.

Binary Subtraction

For binary subtraction, we also have some rules that are given in the table below.

MinuendSubtrahendDifferenceBorrow
00 0
0111
1010
1100

Example of binary subtraction

Subtract the following binary numbers.

1101 and 0011

      1  1  0  1

 (-) 0  0  1  1

 ________________

      1  0  1  0

When 1 is subtracted from 0, there is a borrow from the adjacent bit.

2’s complement Method

The 2’s complement is used to represent the negative of a binary number. The 2’s complement of any binary number can be found by following the steps given.

  1. Invert all bits
  2. Add 1 to the inverted number

The obtained number will be negative compared to the original binary number. The 2’s complement method can be used to subtract the numbers.

Step 1: Write the minutes.

Step 2: Find the 2’s complement of the subtrahend.

Step 3: Add these two numbers.

Step 4: If a carry is there, then discard the carry, and the remaining is the required result.

Step 5: If carry is not there, take 2’s complement of the result and place a negative sign to MSB, which is the reset and is negative.

Example of binary subtraction using 2’s complement

Subtract (52)10 from (92)10 by using the 2’s complement method. Remember, it is the base 10 number.

(52)10  = (0110100)2

(92)10 = (1011100)2

2’s complement of (52)10 = (1001011 + 1)2

                                        = (1001100)2

Now

                                              (1)(1)(1)

                       Minuend      = 1   0   1  1  1  0  0

 2’s complement of (52)10 = 1   0   0  1  1  0  0

                                   ________________________

      [Discard the carry (1)] 0 1   0  1  0  0  0

The result is (0101000)2 or (40)10

Octal Number Arithmetic

Octal arithmetic rules are similar to decimal or binary arithmetic. Arithmetic operations for octal numbers can be performed by converting the octal number to binary numbers and then using the rules of binary arithmetic.

Example of octal addition

Add the numbers (23)8 and (56)8.

(23)8 =        0  1  0  0  1  1

(56)8 =  (+) 1  0  1  1  1  0

       _______________________

            (1)  0  0  0  0  0  1

     Carry

Thus, the result is (1000 001)2 = (101)8

Hexadecimal Number Arithmetic

The rules for arithmetic operations with hexadecimal numbers are similar to the rules for decimal, octal, and binary systems. The information can be handled only in binary form in a digital circuit, and it is easier to enter the information using a hexadecimal number system. Since arithmetic operations are performed by the digital circuits on binary numbers, hexadecimal numbers are first converted into binary numbers.

Example of hexadecimal addition

Add the two numbers (7F)16 and (32)16

                  (1)(1)(1)(1)(1)(1)

(7F)16 =     (0   1  1   1  1   1   1  1)2

(32)16 =  + (0   0  1   1  0   0   1  0)2

       ______________________________

                   1  0  1  1  0  0  0  1

So the result is (1011 0001)2 or (B1)16


Microprocessor Subject Tutorials & Notes | Beginners Guide
engineering subjects Microprocessor microprocessor

Post navigation

Previous post
Next post

Leave a Reply

Your email address will not be published. Required fields are marked *

Introduction to Microprocessor
Generations of Computer
Microprocessor Types
Types of Computer Systems
Types of Programming Languages
Basic Computer Structure
Interfacing Logic Devices
Number System in Computer
Number System Arithmetic – Addition & Subtraction

Microprocessor as CPU
8085 Microprocessor Architecture
Pin Configuration of 8085 Microprocessor
Demultiplexing of Address and Data Bus in 8085 Microprocessor
Basic Operations of the 8085 Microprocessor
Memory Organization in 8085 Microprocessor

Microprocessor memory structure
Memory Interfacing with 8085 Microprocessor
Memory address decoding in a microprocessor
Input/Output Interfacing in Microprocessor

8085 Microprocessor Programming Model
8085 Assembly Language Programming
8085 Microprocessor Instructions
Microprocessor Programming Steps
Flowchart Design of a Program
8085 Microprocessor Data Transfer Instructions
8085 Microprocessor Arithmetic Instructions
8085 Microprocessor Logical Instructions
8085 Microprocessor Branch Instructions
8085 Microprocessor Machine-Processor Control Instructions
Basic Structure of an Assembly Language Program
Programming Techniques for Repeated Tasks
Debugging of a Microprocessor Program

8085 Microprocessor Timing Operations
Timing Diagram of 8085 Microprocessor
Time Delay in Microprocessor
Stack in 8085 Microprocessor
Subroutine in 8085 Microprocessor
MACRO in Microprocessor

Interrupts in 8085 Microprocessor
Digital to Analog Converter (DAC) in Microprocessor
Analog to Digital Converter (ADC) in Microprocessor

Programmable Peripheral Interface
8255 (PPI) Programmable Peripheral Interface
Programmable Interval Timer (PIT) 8253/8254
Programmable Interrupt Controller (PIC) 8259
Direct Memory Access (DMA) Controller 8257

8086 Microprocessor Architecture, Instructions, and Pin Diagram
Addressing Modes of the 8086 Microprocessor
Instruction Set of 8086 Microprocessor
8088 Microprocessor Architecture with Pin Diagram
Difference between 8085, 8086, and 8088 Microprocessors
80186 Microprocessor Architecture
80286 Microprocessor Architecture & Features
80386 Microprocessor Architecture & Features
80486 Microprocessor Architecture & Features
80586 (Pentium) Microprocessor Architecture & Features

8051 Microcontroller Architecture
8051 Microcontroller Memory Organization
8051 Microcontroller Pin Configuration & Programming Model
8051 Microcontroller Timers and Counters
Serial Communication in 8051 Microcontroller
Interrupts of the 8051 Microcontroller
Addressing Modes of the 8051 Microcontroller
Intel MMX Architecture
Dual Core Processor

LED & Multiplexed Display Interfacing with Microprocessor
Liquid Crystal Display (LCD) Pin Configuration & Interfacing
Matrix Keyboard Interfacing with Microprocessor
8279 Keyboard/Display Controller
Programmable Communication Interface (USART) 8251
Serial Communication Standards in Microprocessor
Computer System Standard Buses

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Our content is designed to simplify complex concepts through clear explanations, diagrams, and structured learning—helping students build strong fundamentals and succeed academically without financial barriers.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes