Math

Number system calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a number system?

A number system is a method for representing numbers using a set of symbols and rules. The most common number system we use daily is the decimal system (base 10), which employs digits from 0 to 9. However, computers and digital electronics operate primarily using other systems like binary (base 2), octal (base 8), and hexadecimal (base 16). Each system uses its unique digits or characters to represent numerical values.

A number system calculator helps convert numbers between different bases and perform arithmetic operations such as addition, subtraction, multiplication, and division across different systems. This tool simplifies conversions and calculations that would otherwise be time-consuming.

The calculator automatically performs three steps:

  1. Converts all input numbers into the decimal system (base 10).
  2. Performs the requested operation in the decimal system.
  3. Converts the result back to the original base selected by the user.

This process ensures accuracy and consistency, regardless of the base in which you are working.

If you need to convert numbers between different bases, you can use our number system converter.

Types of number systems

1. Binary (base 2)

Used extensively in computing, the binary system uses only two digits: 0 and 1. Each binary digit (bit) represents an on/off electrical signal.

Example: (1011)2=(1×23)+(0×22)+(1×21)+(1×20)=(11)10(1011)_2 = (1 \times 2^3) + (0 \times 2^2) + (1 \times 2^1) + (1 \times 2^0) = (11)_{10}

2. Octal (base 8)

The octal system uses digits from 0 to 7. It was historically used in computer programming because of its simple relationship to binary (three binary digits correspond to one octal digit).

Example: (217)8=(2×82)+(1×81)+(7×80)=(143)10(217)_8 = (2 \times 8^2) + (1 \times 8^1) + (7 \times 8^0) = (143)_{10}

3. Decimal (base 10)

The standard number system for everyday arithmetic and counting. It uses digits 0 through 9.

Example: (249)10(249)_{10} remains (249)10(249)_{10}.

4. Hexadecimal (base 16)

Commonly used in programming and digital design, this system uses digits 0–9 and letters A–F (representing values 10–15).

Example: (3F)16=(3×161)+(15×160)=(63)10(3F)_ {16} = (3 \times 16^1) + (15 \times 16^0) = (63)_{10}

5. Other bases (2–36)

Beyond these common systems, any base between 2 and 36 can be used. Bases above 10 continue adding letters, where A = 10, B = 11, and so on, up to Z = 35.

Step-by-step examples

Example 1: Binary addition

(1011)2+(1101)2(1011)_2 + (1101)_2

Step 1: Convert to decimal.

(1011)2=1×23+0×22+1×21+1×20=1110(1011)_2 = 1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 = 11_{10}, (1101)2=1×23+1×22+0×21+1×20=1310(1101)_2 = 1 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 1 \times 2^0 = 13_{10}

Step 2: Add in decimal.
11+13=2411 + 13 = 24

Step 3: Convert back to binary.

DivisionQuotientRemainder
24 ÷ 2120
12 ÷ 260
6 ÷ 230
3 ÷ 211
1 ÷ 201

Use the remainders to form the binary number: 2410=(11000)224_{10} = (11000)_2

Example 2: Hexadecimal multiplication

(A)16×(F)16(A)_ {16} \times (F)_{16}

Step 1: Convert to decimal.
(A)16=1010(A)_{16} = 10_{10}, (F)16=1510(F)_{16} = 15_{10}

Step 2: Multiply in decimal.
10×15=15010 \times 15 = 150

Step 3: Convert back to hexadecimal.

DivisionQuotientRemainder
150 ÷ 1696
9 ÷ 1609

Reading the remainders from bottom to top gives the hexadecimal result: 15010=(96)16150_{10} = (96)_{16}

Example 3: Octal fraction division

(260.2)8÷(0.4)8(260.2)_8 ÷ (0.4)_8

Step 1: Convert to decimal.
(260.2)8=2×82+6×81+0×80+2×81=176.2510(260.2)_8 = 2×8^2 + 6×8^1 + 0×8^0 + 2×8^{-1} = 176.25_{10}, and (0.4)8=0×80+4×81=0.510(0.4)_8 = 0×8^0 + 4×8^{-1} = 0.5_{10}

Step 2: Divide in decimal.
176.25÷0.5=352.5176.25 ÷ 0.5 = 352.5

Step 3: Convert back to octal.

DivisionQuotientRemainder
352 ÷ 8440
44 ÷ 854
5 ÷ 805

Fractional part:

MultiplicationResultRemainder
0.5 × 840

Result in octal: 352.510=(540.4)8352.5_{10} = (540.4)_8

Notes

  • Be careful when converting decimal numbers with fractional parts. The fractional part is multiplied by the base instead of divided.
  • To convert fractional binary number (101.1)2(101.1)_2 to decimal, use negative powers of the base for the fractional part:
    1×22+0×21+1×20+1×21=4+0+1+0.5=5.5101×2^2 + 0×2^1 + 1×2^0 + 1×2^{-1} = 4 + 0 + 1 + 0.5 = 5.5_{10}
  • When working with larger bases (e.g. 36), the letters continue until they reach Z.

Advantages of using a calculator

  • Eliminates manual conversion errors.
  • Allows operation on any base from 2 to 36.
  • Supports input of 2, 3 or more numbers
  • Useful for computer programmers, students, and engineers.
  • Saves time when comparing or converting between bases in programming or encryption contexts.

Frequently asked questions

How to add two binary numbers (1010)₂ and (11)₂?

Convert to decimal: 1010+310=131010_{10} + 3_{10} = 13_{10}. Convert back to binary: (1101)2(1101)_2.

Does this calculator support fractional numbers?

Yes, it supports fractional numbers. You can enter numbers with a decimal point.

How many numbers can I enter into the calculator?

You can enter any number of numbers by adding the required number of fields.

Report a bug

This field is required.