What is an octal calculator?
An octal calculator does arithmetic in base 8, the number system built on the digits 0 to 7. Enter two octal numbers, pick add, subtract, or multiply, and it shows the answer in octal and in ordinary decimal, so you can check the result in the system you already know. This page gives you that answer in a second, with the working shown beside the result, and everything runs entirely in your browser with no sign-up and no data sent anywhere.
System administrators use octal every day for Unix file permissions, where each digit stands for three bits, and computer science students meet it as the third number system after decimal and binary. Older computers used octal for machine code, and it still appears in embedded systems. Students meet it in school maths, programmers meet it in code, and shopkeepers and clerks meet it whenever a total has to be split fairly or checked by hand.
The results box shows the answer first, in large type, and then the supporting numbers underneath it, so you can see both the headline and the working at a glance. Change any input and the answer updates at once, which makes it easy to test a few values and build a feel for how the numbers behave.
How octal arithmetic works
Octal works like decimal addition, but in base 8, so a column total of 8 or more carries 1 to the next column. For the default example, 17 plus 25, the right column is 7 plus 5, which is 12, and 12 in octal is 14, so you write 4 and carry 1. The left column is then 1 plus 2 plus the carried 1, which is 4, giving 44.
Octal uses base 8, so the place values are 1, 8, 64, and so on, multiplying by 8 at each step to the left. For 17, the 1 is in the eights place, so it is worth 8, and the 7 is worth 7, giving 15. For 25, the 2 is worth 16 and the 5 is worth 5, giving 21, and 15 plus 21 is 36, which is 44 in octal.
Octal digits run from 0 to 7, so 8 and 9 are not valid octal digits, and this calculator shows a dash instead of guessing when they appear. Subtracting a larger octal number from a smaller one gives a negative decimal result, with the octal answer shown as a dash, because negative numbers need a separate sign convention.
A quick check is to convert both numbers to decimal using the place values 1, 8, and 64, do the arithmetic in decimal, and convert the answer back. If the decimal arithmetic and the octal arithmetic disagree, a column has carried wrongly, which is the most common slip in octal addition.
The digits 8 and 9 do not exist in octal
The digits 8 and 9 are the input people get wrong, because they are valid in decimal but do not exist in octal at all. An octal number can only contain the digits 0 to 7, so 18 is not an octal number, and neither is 29. Typing a familiar decimal number into an octal calculator without converting it first is the single most common error.
Compare 7 times 3 with 25 minus 17 to see the base at work. 7 times 3 is 21 in decimal, which is 25 in octal, because 2 times 8 plus 5 is 21. 25 in octal is 21 in decimal, and 17 in octal is 15, so 21 minus 15 is 6, which is 6 in octal too, since single digits look the same in every base.
The safe habit is to read the input back before trusting the output: check the digits, check the sign, and check that you have not swapped the two numbers round. A calculator only repeats the question you actually asked it, so a careful ten seconds on the input saves a wrong answer later.
A worked example: add, subtract, and multiply in octal
First, the default example: 17 plus 25 in octal. In decimal, 17 in octal is 15 and 25 in octal is 21, and 15 plus 21 is 36. In octal, 36 is 44, because 4 times 8 plus 4 is 36, so the octal result is 44 and the decimal result is 36.
Second, 25 minus 17 in octal. In decimal, 25 in octal is 21 and 17 in octal is 15, and 21 minus 15 is 6. In octal, 6 is 6, since single digits are the same in every base, so the octal result is 6 and the decimal result is 6.
Third, 7 times 3 in octal. In decimal, 7 times 3 is 21. In octal, 21 is 25, because 2 times 8 plus 5 is 21, so the octal result is 25 and the decimal result is 21. The answer looks like twenty-five, but in octal it means twenty-one.
The pattern is that every octal operation can be checked in decimal: convert the inputs, do the arithmetic, and convert the answer back. The octal and decimal answers must agree, and when they do not, the octal working has a slip in it, usually a carry at 8 instead of 10.
Where octal is used
Octal is best known for Unix file permissions, where each digit stands for three bits: read is 4, write is 2, and execute is 1. A permission of 755 means the owner can read, write, and execute, while the group and others can read and execute, and system administrators read those three digits every day.
Octal also appears in older computing systems and in embedded devices, where three bits group neatly into one digit, just as four bits group into one hex digit. An exponent calculator helps with the place values, since each octal place is a power of 8, and a scientific calculator handles the decimal side of the same problem. A exponent calculator and a scientific calculator sit next to this kind of work in most maths toolboxes, and people often use two or three of them together on the same problem.
In school, octal is usually the third or fourth number system students meet, and it teaches place value in its most general form: the base can be anything, and the digits and place values follow from the base. A student who can convert 17 in octal to 15 understands place value properly.
Try a few values yourself once you have read the worked examples, changing one input at a time and watching how the answer moves, then check one result by hand with the method above before you trust the screen. That habit, one hand check for every new kind of problem, is what turns a quick answer into real understanding, and it catches the typing slips that no calculator can catch for you.
Octal calculator vs a hexadecimal calculator
An octal calculator works in base 8, with eight digits, while a hexadecimal calculator works in base 16, with sixteen digits. Octal groups bits in threes and hex groups them in fours, so octal is the natural shorthand for three-bit groups and hex is the natural shorthand for four-bit groups. A logarithm calculator answers a different question, so the two tools complement each other rather than competing.
Use this calculator when the numbers are written in octal, for file permissions or an older system. Use a hex calculator when the numbers are written in hex, for colours, addresses, or code. The base decides the tool, and converting between bases is a separate step from the arithmetic itself.
Octal pairs naturally with powers and logarithms, since octal place values are powers of 8, and a logarithm to base 8 answers how many octal digits a number needs, which is a question that comes up in addressing and permissions. A power calculator is another tool people reach for on the same kind of problem, and keeping the three together covers most everyday cases.
Common octal mistakes
The most common mistake is using the digits 8 and 9 in an octal number. Octal stops at 7, so 18 and 29 are not octal numbers at all, and any answer built from them is meaningless. This calculator shows a dash for such inputs, which is the correct response.
The second mistake is carrying at 10 instead of 8. In octal, a column carries when it reaches 8, not 10, so 7 plus 5 is 12 in decimal, which is 14 in octal, and you write 4 and carry 1. Carrying at 10 is a decimal habit that does not belong in octal.
The third mistake is reading an octal answer as a decimal number. 44 in octal means 36 in decimal, not forty-four, and 25 in octal means 21, not twenty-five. Always check which base an answer is written in before using it.
The fourth mistake is mixing bases in one calculation, adding an octal number to a decimal number without converting first. 17 in octal plus 21 in decimal is 36 only because 17 in octal is 15 in decimal; adding the digits as if both were decimal gives a meaningless result.
How to use this octal calculator
Type the first octal number in the top box and the second in the next box, using only the digits 0 to 7, then pick Add, Subtract, or Multiply. The octal result and the decimal result appear at once, and both update live as you type.
Read the octal result first, then the decimal result underneath it, which is the same answer in ordinary numbers. If the octal result shows a dash, check the inputs for an 8 or a 9, or for a subtraction that goes below zero.
If an answer surprises you, check the input first, then run the worked example from this page through the calculator and confirm it gives the same result. When the known example is right and your own input is right, the answer is right, and that two-step check settles almost every disagreement between a person and a calculator.
Nothing you type leaves your device, so you can use the octal calculator as often as you like, for homework, for work, or just to settle an argument. Bookmark the page and it is ready whenever the next number needs checking.