45 in Binary

45 in binary is 10 1101 (101101).

Result 101101.

Binary (base 2)10 1101

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    45 ÷ 2221
    22 ÷ 2110
    11 ÷ 251
    5 ÷ 221
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 10 1101
binary (base 2)10 1101
octal (base 8)55
decimal (base 10)45
hexadecimal (base 16)2D
Bits needed6 bits (fits in 1 byte)
8-bit form0010 1101
16-bit form0000 0000 0010 1101
32-bit form0000 0000 0000 0000 0000 0000 0010 1101

Quick method for 45

Find the powers of 2 that add up to 45: 32 + 8 + 4 + 1. Put a 1 in those places and 0 elsewhere: 101101.

45 in other forms

  • Place values: 32 + 8 + 4 + 1 = 45
  • Hex: 2D
  • Octal: 55
  • 6 bits — fits in one byte
  • 4 one-bits (even parity)
  • Padded: 0010 1101
  • 16-bit: 0000 0000 0010 1101
  • One's complement (8-bit): 1101 0010
  • Between 25 = 32 and 26 = 64
  • −45 in 8-bit two's complement: 1101 0011
  • ASCII: “-” — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

45 in binary: questions

What is 45 in binary?

101101.

What is 45 in hex?

2D.

How many bits is 45?

6.