Skip to main content
Calculator Fractions

Fraction to Hexadecimal Calculator

Convert fractions to hexadecimal representation.

Decimals & Percents

Use the Fraction to Hexadecimal Calculator

Result
—

How Fraction to Hexadecimal Calculator Works?

The Fraction to Hexadecimal Calculator works in 4 steps: it reads the fraction, divides the numerator by the denominator, converts the whole part to base 16, and converts the fractional part to base 16. The result line shows the hexadecimal (hex) value with the binary and octal values.

  1. Enter the fraction

    Type the numerator and the denominator, for example 27 over 32.

  2. Find the decimal value

    The calculator divides 27 by 32 to get 0.84375.

  3. Multiply the fractional part by 16

    0.84375 × 16 = 13.5, so the 1st hex digit is 13, written D. Then 0.5 × 16 = 8.0, so the 2nd hex digit is 8.

  4. Read the hex result

    The digits give 0.D8 in base 16. The result line shows Hex: 0.D8 in uppercase letters.

Fraction to Hexadecimal Calculator Formula

The fraction to hexadecimal formula is n/d = Σ h_k × 16^-k, where each hex digit h_k is 0 to 15 (written 0–9 and A–F) and comes from repeated multiplication by 16.

Place values

0.h1 h2 = h1/16 + h2/256

Each hex place is worth 1/16 of the place before. 0.4C₁₆ = 4/16 + 12/256 = 19/64.

Repeated multiplication

h_k = floor(16 × f_(k−1)), f_k = 16 × f_(k−1) − h_k

Multiply the fractional part f by 16. The whole part of the product is the next hex digit. Digits 10 to 15 are written A to F.

Binary grouping

1 hex digit = 4 binary digits

Group binary fraction digits in 4s from the point. 0.1011₂ is B, so 11/16 = 0.B₁₆.

Worked example: 173/64 to hexadecimal

  1. Find the decimal: 173 ÷ 64 = 2.703125.
  2. Convert the whole part: 2 in base 16 is 2.
  3. Multiply: 0.703125 × 16 = 11.25, so the 1st digit is 11, written B.
  4. Multiply: 0.25 × 16 = 4.0, so the 2nd digit is 4 and 0 remains.
  5. Write the result: 173/64 = 2.B4 in base 16. Check: 2 + 11/16 + 4/256 = 2.703125.

Fraction to Hexadecimal Calculator Conversion Table

The fraction to hexadecimal conversion table lists 14 fractions with the decimal value, the hex value, and the matching 4-bit binary groups.

FractionDecimalHexadecimalBinary (4-bit groups)
1/160.06250.10.0001
1/80.1250.20.0010
3/160.18750.30.0011
1/40.250.40.0100
1/20.50.80.1000
5/80.6250.A0.1010
11/160.68750.B0.1011
3/40.750.C0.1100
13/160.81250.D0.1101
7/80.8750.E0.1110
15/160.93750.F0.1111
1/2560.00390.010.0000 0001
3/21.51.81.1000
1/50.20.333...0.0011 0011...

What is Fraction to Hexadecimal Calculator?

A Fraction to Hexadecimal Calculator is a tool that writes the value of a fraction in base 16, using the digits 0 to 9 and the letters A to F. 3/4 returns 0.C.

Hex fractions terminate if the reduced denominator is a power of 2, so 11/16 ends as 0.B and 1/256 ends as 0.01. Denominators with other prime factors produce repeating digits, so 1/5 becomes 0.333... in base 16.

The calculator shows the hex value in uppercase next to the binary and octal values. Each hex digit stands for exactly 4 binary digits, so hex is the standard short form for binary data in programming.

What are the uses of Fraction to Hexadecimal Calculator?

The Fraction to Hexadecimal Calculator has 6 main uses, including color opacity values, fixed-point code, and memory debugging.

  • Setting color opacity

    Web designers convert an opacity of 1/2 toward hex alpha values: 0.5 × 255 = 127.5, which rounds to 80 in an 8-digit hex color.

  • Writing fixed-point constants

    Embedded developers store 3/16 as 0x0.3, which is 0x30 in an 8-bit fraction register.

  • Debugging memory dumps

    Programmers read fractional fields in hex dumps and convert 0.C back to 3/4 for checks.

  • Learning number systems

    Computer science students convert 13/16 to 0.D and link the letter D to the value 13.

  • Comparing bases

    Learners compare 5/8 across bases: 0.101 in binary, 0.5 in octal, and 0.A in hex.

  • Checking exam answers

    Students confirm repeated-multiplication answers such as 173/64 = 2.B4₁₆.

Related Decimals & Percents Tools

View all 270 tools →