{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "decimal-inches-to-fraction-calculator",
  "category": "measurements-conversions",
  "title": "Decimal Inches to Fraction Calculator (and Fraction to Decimal)",
  "description": "Round a decimal inch to the nearest tape mark, eighths to sixty-fourths, or turn a tape fraction into decimal inches, with millimetres beside both.",
  "url": "https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/decimal-inches-to-fraction-calculator.json",
  "inputCount": 6,
  "testCaseCount": 12,
  "sourceCount": 2,
  "lastVerified": "2026-10-05",
  "citation": {
    "author": "Craft Quantities",
    "title": "Decimal Inches to Fraction Calculator (and Fraction to Decimal)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-05",
    "url": "https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Decimal Inches to Fraction Calculator (and Fraction to Decimal). Version 1.0.0. Sources checked 2026-10-05. https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/",
      "apa": "Craft Quantities. (2026). Decimal Inches to Fraction Calculator (and Fraction to Decimal) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/",
      "harvard": "Craft Quantities (2026) Decimal Inches to Fraction Calculator (and Fraction to Decimal) (Version 1.0.0). Available at: https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/",
      "bibtex": "@misc{craftquantities-calculators-measurements-conversions-decimal-inches-to-fraction-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Decimal Inches to Fraction Calculator (and Fraction to Decimal)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/measurements-conversions/decimal-inches-to-fraction-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "direction",
      "label": "Convert",
      "type": "select",
      "defaultValue": "toFraction",
      "options": [
        {
          "value": "toFraction",
          "label": "Decimal to tape mark"
        },
        {
          "value": "toDecimal",
          "label": "Tape fraction to decimal"
        }
      ],
      "help": "Which way round: a decimal onto a mark, or a mark into a decimal."
    },
    {
      "id": "decimalInches",
      "label": "Decimal Inches (in)",
      "type": "number",
      "defaultValue": 5.83,
      "min": 0,
      "max": 1200,
      "step": 0.001,
      "help": "The figure in inches, with its decimal part, as the drawing or sheet gives it."
    },
    {
      "id": "precision",
      "label": "Round to the Nearest",
      "type": "select",
      "defaultValue": "16",
      "options": [
        {
          "value": "8",
          "label": "1/8 in"
        },
        {
          "value": "16",
          "label": "1/16 in"
        },
        {
          "value": "32",
          "label": "1/32 in"
        },
        {
          "value": "64",
          "label": "1/64 in"
        }
      ],
      "help": "The finest division on the rule you are marking with; the answer rows show all four anyway."
    },
    {
      "id": "wholeInches",
      "label": "Whole Inches (in)",
      "type": "number",
      "defaultValue": 5,
      "min": 0,
      "max": 1200,
      "step": 1,
      "help": "The whole inches of the reading, before the fraction."
    },
    {
      "id": "numerator",
      "label": "Fraction: Top Number",
      "type": "number",
      "defaultValue": 13,
      "min": 0,
      "max": 63,
      "step": 1,
      "help": "The number above the line: 13 for thirteen sixteenths."
    },
    {
      "id": "denominator",
      "label": "Fraction: Bottom Number",
      "type": "select",
      "defaultValue": "16",
      "options": [
        {
          "value": "2",
          "label": "2 (halves)"
        },
        {
          "value": "4",
          "label": "4 (quarters)"
        },
        {
          "value": "8",
          "label": "8 (eighths)"
        },
        {
          "value": "16",
          "label": "16 (sixteenths)"
        },
        {
          "value": "32",
          "label": "32 (thirty-seconds)"
        },
        {
          "value": "64",
          "label": "64 (sixty-fourths)"
        }
      ],
      "help": "The number below the line: the division the reading was counted in."
    }
  ],
  "sources": [
    {
      "label": "NIST Handbook 44 (2026 edition), Section 5.52 Linear Measures, S.1: a linear measure may be subdivided in inches and binary submultiples of the inch — the halves, quarters, eighths, sixteenths, thirty-seconds and sixty-fourths offered here",
      "url": "https://www.nist.gov/document/2026-nist-handbook-44-section-552"
    },
    {
      "label": "NIST Handbook 44 (2026 edition), Appendix C, General Tables of Units of Measurement: 1 inch = 2.54 centimetres exactly and 12 inches = 1 foot, per the Federal Register of 1 July 1959 (24 FR 5348)",
      "url": "https://www.nist.gov/document/2026-nist-handbook-44-appendix-c"
    }
  ],
  "testCases": [
    {
      "name": "5.83 in is 5 13/16 in to the nearest sixteenth",
      "inputs": {
        "direction": "toFraction",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 5.8125,
      "toleranceDecimalPlaces": 6,
      "unit": "in (5 13/16 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Nearest 1/8 in",
          "value": 5.875,
          "unit": "in (5 7/8 in)"
        },
        {
          "label": "Nearest 1/16 in",
          "value": 5.8125,
          "unit": "in (5 13/16 in)"
        },
        {
          "label": "Nearest 1/32 in",
          "value": 5.84375,
          "unit": "in (5 27/32 in)"
        },
        {
          "label": "Nearest 1/64 in",
          "value": 5.828125,
          "unit": "in (5 53/64 in)"
        },
        {
          "label": "Chosen mark minus the figure entered, in millimetres",
          "value": -0.4445000000000018,
          "unit": "mm"
        },
        {
          "label": "Figure entered, in millimetres",
          "value": 148.082,
          "unit": "mm"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "5.83 in is 5 7/8 in to the nearest eighth",
      "inputs": {
        "direction": "toFraction",
        "decimalInches": 5.83,
        "precision": "8",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 5.875,
      "toleranceDecimalPlaces": 6,
      "unit": "in (5 7/8 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Nearest 1/8 in",
          "value": 5.875,
          "unit": "in (5 7/8 in)"
        },
        {
          "label": "Nearest 1/16 in",
          "value": 5.8125,
          "unit": "in (5 13/16 in)"
        },
        {
          "label": "Nearest 1/32 in",
          "value": 5.84375,
          "unit": "in (5 27/32 in)"
        },
        {
          "label": "Nearest 1/64 in",
          "value": 5.828125,
          "unit": "in (5 53/64 in)"
        },
        {
          "label": "Chosen mark minus the figure entered, in millimetres",
          "value": 1.1429999999999982,
          "unit": "mm"
        },
        {
          "label": "Figure entered, in millimetres",
          "value": 148.082,
          "unit": "mm"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "0.97 in rounds up to a whole inch at sixteenths",
      "inputs": {
        "direction": "toFraction",
        "decimalInches": 0.97,
        "precision": "16",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 1,
      "toleranceDecimalPlaces": 6,
      "unit": "in",
      "confidence": "high",
      "steps": [
        {
          "label": "Nearest 1/8 in",
          "value": 1,
          "unit": "in"
        },
        {
          "label": "Nearest 1/16 in",
          "value": 1,
          "unit": "in"
        },
        {
          "label": "Nearest 1/32 in",
          "value": 0.96875,
          "unit": "in (31/32 in)"
        },
        {
          "label": "Nearest 1/64 in",
          "value": 0.96875,
          "unit": "in (31/32 in)"
        },
        {
          "label": "Chosen mark minus the figure entered, in millimetres",
          "value": 0.7620000000000007,
          "unit": "mm"
        },
        {
          "label": "Figure entered, in millimetres",
          "value": 24.637999999999998,
          "unit": "mm"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "5.83 in is 5 27/32 in to the nearest thirty-second",
      "inputs": {
        "direction": "toFraction",
        "decimalInches": 5.83,
        "precision": "32",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 5.84375,
      "toleranceDecimalPlaces": 6,
      "unit": "in (5 27/32 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Nearest 1/8 in",
          "value": 5.875,
          "unit": "in (5 7/8 in)"
        },
        {
          "label": "Nearest 1/16 in",
          "value": 5.8125,
          "unit": "in (5 13/16 in)"
        },
        {
          "label": "Nearest 1/32 in",
          "value": 5.84375,
          "unit": "in (5 27/32 in)"
        },
        {
          "label": "Nearest 1/64 in",
          "value": 5.828125,
          "unit": "in (5 53/64 in)"
        },
        {
          "label": "Chosen mark minus the figure entered, in millimetres",
          "value": 0.3492499999999982,
          "unit": "mm"
        },
        {
          "label": "Figure entered, in millimetres",
          "value": 148.082,
          "unit": "mm"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "5.83 in is 5 53/64 in to the nearest sixty-fourth",
      "inputs": {
        "direction": "toFraction",
        "decimalInches": 5.83,
        "precision": "64",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 5.828125,
      "toleranceDecimalPlaces": 6,
      "unit": "in (5 53/64 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Nearest 1/8 in",
          "value": 5.875,
          "unit": "in (5 7/8 in)"
        },
        {
          "label": "Nearest 1/16 in",
          "value": 5.8125,
          "unit": "in (5 13/16 in)"
        },
        {
          "label": "Nearest 1/32 in",
          "value": 5.84375,
          "unit": "in (5 27/32 in)"
        },
        {
          "label": "Nearest 1/64 in",
          "value": 5.828125,
          "unit": "in (5 53/64 in)"
        },
        {
          "label": "Chosen mark minus the figure entered, in millimetres",
          "value": -0.047625000000001805,
          "unit": "mm"
        },
        {
          "label": "Figure entered, in millimetres",
          "value": 148.082,
          "unit": "mm"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "5 13/16 in is 5.8125 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 5,
        "numerator": 13,
        "denominator": "16"
      },
      "expected": 5.8125,
      "toleranceDecimalPlaces": 8,
      "unit": "in (5 13/16 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 147.6375,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.484375,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "27/64 in is 0.421875 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 0,
        "numerator": 27,
        "denominator": "64"
      },
      "expected": 0.421875,
      "toleranceDecimalPlaces": 8,
      "unit": "in (27/64 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 10.715625,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.03515625,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "3 1/2 in is 3.5 in, and 88.9 mm",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 3,
        "numerator": 1,
        "denominator": "2"
      },
      "expected": 3.5,
      "toleranceDecimalPlaces": 8,
      "unit": "in (3 1/2 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 88.89999999999999,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.2916666666666667,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "2 3/4 in is 2.75 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 2,
        "numerator": 3,
        "denominator": "4"
      },
      "expected": 2.75,
      "toleranceDecimalPlaces": 8,
      "unit": "in (2 3/4 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 69.85,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.22916666666666666,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "7/8 in is 0.875 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 0,
        "numerator": 7,
        "denominator": "8"
      },
      "expected": 0.875,
      "toleranceDecimalPlaces": 8,
      "unit": "in (7/8 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 22.224999999999998,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.07291666666666667,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "1 5/32 in is 1.15625 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 1,
        "numerator": 5,
        "denominator": "32"
      },
      "expected": 1.15625,
      "toleranceDecimalPlaces": 8,
      "unit": "in (1 5/32 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 29.36875,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.09635416666666667,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A top number of 1.3 sixteenths counts one mark, 0.0625 in",
      "inputs": {
        "direction": "toDecimal",
        "decimalInches": 5.83,
        "precision": "16",
        "wholeInches": 0,
        "numerator": 1.3,
        "denominator": "16"
      },
      "expected": 0.0625,
      "toleranceDecimalPlaces": 8,
      "unit": "in (1/16 in)",
      "confidence": "high",
      "steps": [
        {
          "label": "Millimetres",
          "value": 1.5875,
          "unit": "mm"
        },
        {
          "label": "Decimal feet",
          "value": 0.005208333333333333,
          "unit": "ft"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
