{
  "id": "bill-split",
  "version": "c8da105c5cfd",
  "status": "published",
  "name": "Bill Split Calculator",
  "question": "How do we split the bill?",
  "summary": "Splits a restaurant bill with tax and tip evenly between people, or by what each person ordered with shared dishes split evenly and tax and tip in proportion.",
  "category": "everyday-life",
  "subcategory": "money-and-shopping",
  "url": "https://www.acalculator.org/everyday-life/bill-split-calculator",
  "markdown": "https://www.acalculator.org/everyday-life/bill-split-calculator.md",
  "kind": "function",
  "method": "Tip = tip % × bill before tax; each share = own food (+ shared ÷ people) × (1 + tip %) + tax × own food ÷ total food; total = sum of shares.",
  "assumptions": [
    "The tip is on the bill before tax. Shared dishes are split evenly; tax and tip follow each person’s food.",
    "Each share is rounded to the cent for display, so the shown shares can differ from the total by a cent."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "mode": {
        "title": "Split",
        "description": "Evenly between everyone, or by what each person ordered.",
        "type": "string",
        "enum": [
          "even",
          "items"
        ]
      },
      "bill": {
        "title": "Bill before tax and tip",
        "description": "The food and drink total on the bill, before tax and tip.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 10000000
      },
      "people": {
        "title": "People",
        "description": "How many people share the bill.",
        "type": "integer",
        "minimum": 1,
        "maximum": 100
      },
      "orders": {
        "title": "What each person ordered",
        "description": "One row per person: the total of their own food and drinks, before tax and tip.",
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "o": {
              "title": "Ordered",
              "description": "This person’s own food and drinks, before tax and tip.",
              "type": "number",
              "x-unit": "USD",
              "minimum": 0,
              "maximum": 10000000
            }
          }
        }
      },
      "shared": {
        "title": "Shared dishes",
        "description": "Dishes everyone shared, split evenly. Leave empty for none.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 10000000
      },
      "tax": {
        "title": "Tax",
        "description": "The tax on the bill, in dollars. Leave empty for none.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 10000000
      },
      "tip": {
        "title": "Tip",
        "description": "The tip as a percent of the bill before tax.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 100
      },
      "round": {
        "title": "Round each share",
        "description": "Leave each share exact, or round it up to the next whole dollar (the extra goes to the tip).",
        "type": "string",
        "enum": [
          "no",
          "up"
        ]
      }
    }
  },
  "outputs": {
    "total": {
      "label": "Total to pay",
      "description": "Food and drinks + tax + tip (with any rounding up).",
      "format": "money"
    },
    "split": {
      "label": "Who pays what",
      "description": "Each person’s share: the even share, or each person’s food, part of the shared dishes, tax and tip.",
      "format": "text"
    },
    "share": {
      "label": "Each person pays",
      "description": "The even share of the total (even split only).",
      "format": "money"
    },
    "food": {
      "label": "Bill before tax and tip",
      "description": "The food and drink total.",
      "format": "money"
    },
    "tipAmount": {
      "label": "Tip",
      "description": "Tip % × the bill before tax, plus any rounding up.",
      "format": "money"
    },
    "taxAmount": {
      "label": "Tax",
      "description": "The tax on the bill.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "mode": "even",
      "bill": 120,
      "people": 4,
      "orders": [
        {
          "amount": "25"
        },
        {
          "amount": "32.50"
        },
        {
          "amount": "18"
        }
      ],
      "tip": 18,
      "round": "no"
    },
    "outputs": {
      "total": 141.6,
      "split": "Each of 4 pays $35.40",
      "share": 35.4,
      "food": 120,
      "tipAmount": 21.6,
      "taxAmount": 0
    },
    "text": "The total is $141.60. Each of 4 pays $35.40."
  },
  "examples": [
    {
      "given": {
        "mode": "even",
        "bill": 120,
        "people": 4,
        "tax": 9.6,
        "tip": 18,
        "round": "no"
      },
      "expect": {
        "tipAmount": 21.6,
        "total": 151.2,
        "share": 37.8,
        "split": "Each of 4 pays $37.80"
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (tip and tax as a percent of an amount). https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent; hand calculation in content.mdx: tip 120 × 0.18 = 21.60; 120 + 9.60 + 21.60 = 151.20; ÷ 4 = 37.80"
    },
    {
      "given": {
        "mode": "items",
        "orders": [
          {
            "amount": 25
          },
          {
            "amount": 32.5
          },
          {
            "amount": 18
          }
        ],
        "shared": 12,
        "tax": 7,
        "tip": 20,
        "round": "no"
      },
      "expect": {
        "food": 87.5,
        "total": 112,
        "tipAmount": 17.5,
        "split": "Person 1: $37.12; Person 2: $46.72; Person 3: $28.16"
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (tip and tax as a percent of an amount). https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent; hand calculation in content.mdx: shares 29, 36.50, 22 (with $4 of starters each); × 1.2 plus tax × share ÷ 87.50"
    },
    {
      "given": {
        "mode": "even",
        "bill": 85.4,
        "people": 3,
        "tip": 20,
        "round": "up"
      },
      "expect": {
        "share": 35,
        "total": 105,
        "tipAmount": 19.6
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (tip and tax as a percent of an amount). https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent; hand calculation in content.mdx: 85.40 × 1.2 ÷ 3 = 34.16, rounded up to 35; tip 105 − 85.40 = 19.60"
    }
  ],
  "sources": [
    "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (an amount as a percent of a base, as for a tip or a tax). https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-02)"
  ],
  "related": [
    "tip",
    "sales-tax",
    "unit-price"
  ],
  "changelog": []
}
