Hexadecimal Calculator
Convert between hexadecimal and decimal.
About Hexadecimal Calculator
Hexadecimal (base 16) uses digits 0-9 and letters A-F. Common in computing for representing colors, memory addresses, etc.
$$n_{16} \leftrightarrow n_{10}$$
How to use this calculator
- Enter the number you want to convert.
- Choose whether it is hexadecimal or decimal.
- Read the converted value in the other number system.
- Use the worked example to check how the place values change.
The formula explained
The notation \(n_{16} \leftrightarrow n_{10}\) means a number can be converted between base 16 and base 10. In hex, each position represents a power of 16, while in decimal each position represents a power of 10.
- \(n_{16}\) = a number written in hexadecimal, using digits 0 to 9 and letters A to F
- \(n_{10}\) = the same number written in decimal
Step by step method
- For hex to decimal, expand the number by place value, so for 3A you compute \(3 \times 16^1 + 10 \times 16^0\).
- For decimal to hex, divide by 16 repeatedly and record the remainders.
- Write the remainders from last to first to get the hexadecimal form.
Worked example
Problem. Convert hexadecimal 3A to decimal.
- Split 3A into place values, \(3\) and \(A\), where \(A = 10\).
- Compute \(3 \times 16 + 10 \times 1 = 48 + 10\).
- Add them to get \(58\).
Answer. \(3A_{16} = 58_{10}\)
Tips and common mistakes
- Remember that A, B, C, D, E, and F stand for 10, 11, 12, 13, 14, and 15.
- A common mistake is treating hex digits like decimal digits, but each position in hex is based on powers of 16.
Frequently asked questions
How do I convert hexadecimal to decimal with this calculator?+
Enter the hexadecimal number in the hex field, and the calculator will convert it to base 10. Hex digits A through F stand for 10 through 15, so a value like 2F16 means 2 times 16 plus 15.
How do I convert decimal to hexadecimal?+
Type the decimal number into the decimal field, and the tool will rewrite it in base 16. The conversion works by repeatedly dividing by 16 and using the remainders as hex digits.
What does the formula n16 ↔ n10 mean?+
It means the calculator converts a number between base 16 and base 10 in either direction. The same value is being written in two different number systems, not changed mathematically.
What happens if I enter a hex number with letters like A, B, C, D, E, or F?+
That is normal in hexadecimal, because those letters represent 10 through 15. For example, 1A16 equals 26 in decimal.
How can I check if my conversion is correct?+
A good check is to convert the result back the other way, from decimal to hex or from hex to decimal. If the original value and the round trip match, the conversion is correct.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.