{
  "id": "revenue",
  "version": "cd0a9ab0e297",
  "status": "published",
  "name": "Revenue Calculator",
  "question": "What is my revenue?",
  "summary": "Computes total revenue from the price and the number of units sold, or the price or units you need for a revenue goal.",
  "category": "finance",
  "subcategory": "business",
  "url": "https://www.acalculator.org/finance/revenue-calculator",
  "markdown": "https://www.acalculator.org/finance/revenue-calculator.md",
  "kind": "formulas",
  "method": "Revenue = price × units; units = revenue ÷ price; price = revenue ÷ units.",
  "assumptions": [
    "Every unit sells at the same price. For several prices, add up the revenue of each.",
    "Revenue is before any costs, returns or taxes.",
    "Arithmetic is exact on the typed decimals; money shows to the cent and units to 2 decimals, halves up."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "price": {
        "title": "Price per unit",
        "description": "What each unit sells for.",
        "type": "number",
        "x-unit": "USD",
        "exclusiveMinimum": 0,
        "maximum": 1000000000
      },
      "units": {
        "title": "Units sold",
        "description": "How many units were sold.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000
      },
      "revenue": {
        "title": "Total revenue",
        "description": "Price per unit × units sold.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000000000000000
      }
    }
  },
  "solve": {
    "fillAny": 2,
    "variables": [
      "price",
      "units",
      "revenue"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "price": {
      "label": "Price per unit",
      "description": "What each unit sells for.",
      "format": "money"
    },
    "units": {
      "label": "Units sold",
      "description": "Revenue ÷ price, to 2 decimals.",
      "format": "number"
    },
    "revenue": {
      "label": "Total revenue",
      "description": "Price per unit × units sold.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "price": 25,
      "units": 1200
    },
    "outputs": {
      "revenue": 30000
    },
    "text": "Selling 1,200 units at $25.00 each brings in $30,000.00 of revenue."
  },
  "examples": [
    {
      "given": {
        "price": 800,
        "units": 5
      },
      "expect": {
        "revenue": 4000
      },
      "source": "OpenStax, Principles of Economics 3e, 9.2 How a Profit-Maximizing Monopoly Chooses Output and Price, Table 9.3 (total revenue = price × quantity: 5 units at $800 is $4,000). https://openstax.org/books/principles-economics-3e/pages/9-2-how-a-profit-maximizing-monopoly-chooses-output-and-price; 800 × 5 = 4,000"
    },
    {
      "given": {
        "revenue": 3600,
        "units": 4
      },
      "expect": {
        "price": 900
      },
      "source": "OpenStax, Principles of Economics 3e, 9.2 How a Profit-Maximizing Monopoly Chooses Output and Price, Table 9.3 (total revenue = price × quantity: 5 units at $800 is $4,000). https://openstax.org/books/principles-economics-3e/pages/9-2-how-a-profit-maximizing-monopoly-chooses-output-and-price (4 units, $3,600); 3,600 ÷ 4 = 900"
    },
    {
      "given": {
        "revenue": 50000,
        "price": 19.99
      },
      "expect": {
        "units": 2501.250625312656
      },
      "source": "hand calculation in content.mdx: 50,000 ÷ 19.99 = 2,501.25"
    },
    {
      "given": {
        "price": 19.99,
        "units": 3
      },
      "expect": {
        "revenue": 59.97
      },
      "source": "hand calculation in content.mdx: 19.99 × 3 = 59.97 exactly"
    }
  ],
  "sources": [
    "OpenStax, Principles of Economics 3e, 9.2 How a Profit-Maximizing Monopoly Chooses Output and Price, Table 9.3: total revenue = price × quantity (4 units at $900 is $3,600; 5 at $800 is $4,000). https://openstax.org/books/principles-economics-3e/pages/9-2-how-a-profit-maximizing-monopoly-chooses-output-and-price (retrieved 2026-10-05)",
    "OpenStax, Principles of Economics 3e, 5.3 Elasticity and Pricing: total revenue is price times quantity, and how elasticity decides whether a price change raises it. https://openstax.org/books/principles-economics-3e/pages/5-3-elasticity-and-pricing (retrieved 2026-10-05)"
  ],
  "related": [
    "marginal-revenue",
    "profit",
    "gross-profit",
    "break-even"
  ],
  "changelog": []
}
