{
  "slug": "fraction",
  "title": "Fraction Calculator",
  "heading": "Fraction Calculator",
  "category": "math",
  "url": "https://www.revenuelab.fyi/toolbox/fraction",
  "summary": "Add, subtract, multiply, and divide two fractions.",
  "description": "Enter two fractions and an operation — get the simplified result and decimal value.",
  "formula": null,
  "dateModified": "2026-10-03",
  "run_url": "https://www.revenuelab.fyi/api/public/calc?tool=fraction",
  "inputs": [
    {
      "id": "n1",
      "label": "Numerator 1",
      "kind": "number",
      "hint": null,
      "default": 1,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "d1",
      "label": "Denominator 1",
      "kind": "number",
      "hint": null,
      "default": 2,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "op",
      "label": "Operation",
      "kind": "select",
      "hint": null,
      "default": "+",
      "options": [
        {
          "value": "+",
          "label": "Add (+)"
        },
        {
          "value": "-",
          "label": "Subtract (−)"
        },
        {
          "value": "*",
          "label": "Multiply (×)"
        },
        {
          "value": "/",
          "label": "Divide (÷)"
        }
      ]
    },
    {
      "id": "n2",
      "label": "Numerator 2",
      "kind": "number",
      "hint": null,
      "default": 1,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "d2",
      "label": "Denominator 2",
      "kind": "number",
      "hint": null,
      "default": 3,
      "unit": null,
      "min": null,
      "max": null
    }
  ],
  "outputs": [
    {
      "id": "simplified",
      "label": "Simplified",
      "format": "raw",
      "hint": null,
      "primary": true
    },
    {
      "id": "decimal",
      "label": "Decimal",
      "format": "decimal",
      "hint": null,
      "primary": false
    }
  ],
  "worked_example": {
    "inputs": [
      "Numerator 1: 1",
      "Denominator 1: 2",
      "Operation: Add (+)",
      "Numerator 2: 1",
      "Denominator 2: 3"
    ],
    "outputs": [
      "Simplified: 5/6",
      "Decimal: 0.833333"
    ]
  },
  "how_to": {
    "title": "How to use this",
    "steps": [
      "Enter numerator 1.",
      "Enter denominator 1.",
      "Enter operation.",
      "Enter numerator 2.",
      "Enter denominator 2.",
      "Read your simplified on the right — it updates as you type.",
      "Hit Share to keep the scenario or send it to someone."
    ]
  },
  "scenarios": [
    {
      "name": "Conservative",
      "description": "Lower-end numbers — what if things land soft?",
      "values": {
        "n1": 1,
        "d1": 1,
        "op": "+",
        "n2": 1,
        "d2": 2
      }
    },
    {
      "name": "Typical",
      "description": "Defaults — the most common real-world setup.",
      "values": {
        "n1": 1,
        "d1": 2,
        "op": "+",
        "n2": 1,
        "d2": 3
      }
    },
    {
      "name": "Ambitious",
      "description": "Higher-end numbers — what if things really pop?",
      "values": {
        "n1": 2,
        "d1": 3,
        "op": "+",
        "n2": 2,
        "d2": 5
      }
    }
  ],
  "limitations": [
    "Results are rounded for display; the underlying calculation keeps full precision.",
    "Very large or very small inputs may hit floating-point limits in the browser.",
    "Inputs outside the accepted range are clamped rather than rejected."
  ],
  "faq": [
    {
      "q": "How does the fraction calculator work?",
      "a": "Enter two fractions and an operation — get the simplified result and decimal value."
    },
    {
      "q": "What do I need to enter?",
      "a": "5 values: numerator 1, denominator 1, operation, numerator 2, and denominator 2. Each field starts with a sensible default, so you can change one number at a time and watch the result move."
    },
    {
      "q": "What does the simplified result mean?",
      "a": "It is returned as a plain value and updates live as you edit the inputs, so you can compare two or three versions of a scenario in a few seconds."
    },
    {
      "q": "Is this calculator free, and do I need an account?",
      "a": "Yes, it's free, and no account is required. Nothing you type is stored on our servers — the maths runs entirely in your browser."
    },
    {
      "q": "How accurate is the result?",
      "a": "It applies the standard formula exactly, so the arithmetic is precise. Results are rounded for display; the underlying calculation keeps full precision."
    },
    {
      "q": "Who is this tool for?",
      "a": "It's built for students, developers, and anyone who needs the answer right now without setting up a spreadsheet."
    }
  ],
  "related": [
    "https://www.revenuelab.fyi/toolbox/percentage"
  ],
  "license": "CC-BY-4.0",
  "citation": "RevenueLab — Fraction Calculator (https://www.revenuelab.fyi/toolbox/fraction)"
}