How to Convert Decimal, Binary, Hex and Octal on a Scientific Calculator
Press MODE MODE 1 for BASE mode. Type your number, press =, then press the key for the base you want: x² for decimal, ^ for hexadecimal, log for binary and ln for octal. For example 25 becomes 11001 in binary, 19 in hex and 31 in octal.
Try it on the calculator. Press the keys yourself, or watch an example being keyed in:
Scientific constants CONST 01–40
Unit conversions SHIFT CONST 01–40
Step by step
Switch to BASE mode
MODEMODE1MODE MODE moves to page 2 of the mode menu and 1 selects BASE. The display shows Dec to tell you that numbers are being read as decimal.
Choose the base you are typing in
x²^loglnThe four base keys are x² for DEC, ^ for HEX, log for BIN and ln for OCT. Pressing one also clears the entry, so choose the input base before typing the number. If your number is decimal you can leave it on Dec.
Type the number
25Only digits that exist in the current base are accepted: 0 and 1 in binary, 0 to 7 in octal. In hex the letters A to F are the keys (–), °′″, hyp, sin, cos and tan, printed in the corner of each key. On a computer keyboard just type a to f.
Press =
=This stores the number as a value. Skipping it is the most common reason a conversion shows 0.
Press the base you want
logThe converted value replaces the number, and the indicator (Dec, Hex, Bin or Oct) shows which base is displayed. 25 in binary is 11001. Press ^ for 19 in hex or ln for 31 in octal.
Quick reference
These are the conversions shown by this calculator, all done with the steps above.
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 25 | 11001 | 31 | 19 |
| 255 | 11111111 | 377 | FF |
| 1000 | 1111101000 | 1750 | 3E8 |
| 11 | 1011 | 13 | B |
Hex letters are typed with the keys A (–), B (°′″), C (hyp), D (sin), E (cos) and F (tan).
Hex to decimal and binary to decimal
Choose the input base first: ^ for hex or log for binary. Type the number, press =, then press x² for decimal. Hex FF becomes 255, and binary 1011 becomes 11.
MODEMODE1^tantan=x²Binary arithmetic and logic
Once you are in a base, ordinary arithmetic works in that base. In BIN, 101 + 11 shows 1000. The x⁻¹ key opens a logic menu with and, or, xor, xnor, Not and Neg for bitwise work.
Limits to know about
BASE mode works with whole numbers only, so the decimal point key does nothing. Very large numbers are too long for binary: 99999 gives Math ERROR in BIN, but converts to 1869F in hex. To go back to normal calculating, press MODE then 1 for COMP.
Common mistakes and errors
- The result is 0
- You pressed a base key before pressing =. Type the number, press =, and only then press the target base.
- A digit will not type
- It does not exist in the current base. 2 to 9 are rejected in binary, and 8 and 9 in octal. Letters A to F only work in HEX.
- Typing a decimal point does nothing
- BASE mode only handles integers. Convert the whole part and handle the fraction separately.
- Math ERROR on a big number in binary
- The number is too long to display in binary. Convert it to hex or octal instead.
Frequently asked questions
How do I convert decimal to binary on a scientific calculator?
Enter BASE mode with MODE MODE 1, type the decimal number, press =, then press the log key. The display shows the binary value with a Bin indicator.
How do I convert hex to decimal?
Press ^ to select HEX, type the number using the letter keys for A to F, press =, then press x² for decimal. FF becomes 255.
Can I do arithmetic in binary or hex?
Yes. Pick the base, then calculate normally. In binary 101 + 11 = 1000.