{
  "id": "variable-cost",
  "version": "be7fd440ec26",
  "status": "published",
  "name": "Variable Cost Calculator",
  "question": "What is my variable cost?",
  "summary": "Computes total variable cost from the cost per unit and the number of units, or from total cost minus fixed costs, with the variable cost per unit and total cost.",
  "category": "finance",
  "subcategory": "business",
  "url": "https://www.acalculator.org/finance/variable-cost-calculator",
  "markdown": "https://www.acalculator.org/finance/variable-cost-calculator.md",
  "kind": "function",
  "method": "From the cost per unit: total variable cost = variable cost per unit × units, and total cost = fixed costs + total variable cost. From the total cost: total variable cost = total cost − fixed costs, and variable cost per unit = total variable cost ÷ units. Average total cost per unit = total cost ÷ units.",
  "assumptions": [
    "Each unit costs the same, so total variable cost rises in direct proportion to the units.",
    "Fixed costs stay the same over the range of units you enter.",
    "Arithmetic is exact on the typed decimals; money shows to the cent, halves up."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "from": {
        "title": "Start from",
        "description": "The cost of one unit and how many units, or the total cost and the fixed costs.",
        "type": "string",
        "enum": [
          "unit",
          "total"
        ]
      },
      "vc": {
        "title": "Variable cost per unit",
        "description": "What each unit costs in materials, direct labor, commissions and other costs that rise with volume.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000000000000
      },
      "tc": {
        "title": "Total cost",
        "description": "All costs for the period, fixed and variable.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000000000000
      },
      "q": {
        "title": "Units",
        "description": "Units made or sold, or another measure of activity such as hours or guests. Needed when you start from the cost per unit.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000000000
      },
      "fc": {
        "title": "Fixed costs",
        "description": "Costs that stay the same as volume changes, such as rent and salaries. Needed when you start from the total cost.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000000000000
      }
    }
  },
  "outputs": {
    "variable": {
      "label": "Total variable cost",
      "description": "Variable cost per unit × units, or total cost − fixed costs.",
      "format": "money"
    },
    "unitCost": {
      "label": "Variable cost per unit",
      "description": "Total variable cost ÷ units. Shown when you start from the total cost and enter units above 0.",
      "format": "money"
    },
    "totalCost": {
      "label": "Total cost",
      "description": "Fixed costs + total variable cost. Shown when you start from the cost per unit and enter fixed costs.",
      "format": "money"
    },
    "average": {
      "label": "Average total cost per unit",
      "description": "Total cost ÷ units, when both are known and units are above 0.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "from": "unit",
      "vc": 70,
      "tc": 1770,
      "q": 15,
      "fc": 720
    },
    "outputs": {
      "variable": 1050,
      "totalCost": 1770,
      "average": 118
    },
    "text": "The total variable cost is $1,050.00."
  },
  "examples": [
    {
      "given": {
        "from": "unit",
        "vc": 70,
        "q": 15,
        "fc": 720
      },
      "expect": {
        "variable": 1050,
        "totalCost": 1770,
        "average": 118
      },
      "source": "OpenStax, Principles of Managerial Accounting, 2.2 Identify and Apply Basic Cost Behavior Patterns (variable costs vary in direct proportion to activity; total cost = fixed costs + variable costs). https://openstax.org/books/principles-managerial-accounting/pages/2-2-identify-and-apply-basic-cost-behavior-patterns (Pat’s ski trip: total variable cost $1,050, total fixed cost $720); hand calculation in content.mdx: 1,770 ÷ 15 = 118"
    },
    {
      "given": {
        "from": "total",
        "tc": 8435000,
        "fc": 1560000,
        "q": 625
      },
      "expect": {
        "variable": 6875000,
        "unitCost": 11000,
        "average": 13496
      },
      "source": "OpenStax, Principles of Managerial Accounting, 2.2 Identify and Apply Basic Cost Behavior Patterns (variable costs vary in direct proportion to activity; total cost = fixed costs + variable costs). https://openstax.org/books/principles-managerial-accounting/pages/2-2-identify-and-apply-basic-cost-behavior-patterns (Carolina Yachts: fixed $1,560,000, variable $6,875,000, $11,000 a boat); hand calculation in content.mdx: 8,435,000 ÷ 625 = 13,496"
    },
    {
      "given": {
        "from": "total",
        "tc": 400,
        "fc": 160,
        "q": 60
      },
      "expect": {
        "variable": 240,
        "unitCost": 4,
        "average": 6.666666666666667
      },
      "source": "OpenStax, Principles of Economics 3e, 7.3 Costs in the Short Run (total cost = fixed cost + variable cost; average variable cost = variable cost ÷ quantity; The Clip Joint). https://openstax.org/books/principles-economics-3e/pages/7-3-costs-in-the-short-run (Table 7.9: fixed cost $160, variable cost $240, total cost $400 at 60 haircuts); 240 ÷ 60 = 4"
    },
    {
      "given": {
        "from": "unit",
        "vc": 3.45,
        "q": 1250,
        "fc": 2000.1
      },
      "expect": {
        "variable": 4312.5,
        "totalCost": 6312.6,
        "average": 5.05008
      },
      "source": "hand calculation in content.mdx: 3.45 × 1,250 = 4,312.50; 2,000.10 + 4,312.50 = 6,312.60; 6,312.60 ÷ 1,250 = 5.05008"
    },
    {
      "given": {
        "from": "unit",
        "vc": 12.5,
        "q": 400
      },
      "expect": {
        "variable": 5000
      },
      "source": "OpenStax, Principles of Managerial Accounting, 2.2 Identify and Apply Basic Cost Behavior Patterns (variable costs vary in direct proportion to activity; total cost = fixed costs + variable costs). https://openstax.org/books/principles-managerial-accounting/pages/2-2-identify-and-apply-basic-cost-behavior-patterns; hand calculation in content.mdx: 12.50 × 400 = 5,000"
    }
  ],
  "sources": [
    "OpenStax, Principles of Managerial Accounting, 2.2 Identify and Apply Basic Cost Behavior Patterns: a variable cost varies in direct proportion to the level of activity, stays the same per unit, and total cost is the sum of fixed and variable costs; Pat's ski trip ($70 per person per day, total variable cost $1,050, fixed costs $720) and Carolina Yachts (625 boats, fixed $1,560,000, variable $6,875,000, $11,000 per boat). https://openstax.org/books/principles-managerial-accounting/pages/2-2-identify-and-apply-basic-cost-behavior-patterns (retrieved 2026-10-19)",
    "OpenStax, Principles of Economics 3e, 7.3 Costs in the Short Run: total costs are the sum of fixed plus variable costs; average variable cost is variable cost divided by the quantity produced; average total cost is total cost divided by quantity; The Clip Joint (Table 7.9: 60 haircuts, fixed cost $160, variable cost $240, total cost $400). https://openstax.org/books/principles-economics-3e/pages/7-3-costs-in-the-short-run (retrieved 2026-10-19)"
  ],
  "related": [
    "break-even",
    "marginal-cost",
    "operating-leverage",
    "cogm"
  ],
  "changelog": []
}
