{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/ca/sales-tax/schema.json",
  "title": "Sales Tax Calculator — Canada inputs",
  "description": "Add or extract general retail tax with dated Canadian rates or a US state/base reference plus your separately verified local component. A population-weighted state average is never used as a transaction rate. CAD planning view; stated limitations apply.",
  "type": "object",
  "properties": {
    "amount": {
      "title": "Amount",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 100,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "CAD",
      "x-unit": "currency"
    },
    "direction": {
      "title": "Amount includes tax?",
      "type": "string",
      "default": "exclusive",
      "enum": [
        "exclusive",
        "inclusive"
      ],
      "x-optionLabels": {
        "exclusive": "Add tax to price",
        "inclusive": "Extract tax from total"
      }
    },
    "province": {
      "title": "Canadian province/territory",
      "type": "string",
      "default": "ON",
      "enum": [
        "NL",
        "PE",
        "NS",
        "NB",
        "QC",
        "ON",
        "MB",
        "SK",
        "AB",
        "BC",
        "YT",
        "NT",
        "NU"
      ],
      "x-optionLabels": {
        "NL": "Newfoundland and Labrador",
        "PE": "Prince Edward Island",
        "NS": "Nova Scotia",
        "NB": "New Brunswick",
        "QC": "Quebec",
        "ON": "Ontario",
        "MB": "Manitoba",
        "SK": "Saskatchewan",
        "AB": "Alberta",
        "BC": "British Columbia",
        "YT": "Yukon",
        "NT": "Northwest Territories",
        "NU": "Nunavut"
      }
    }
  },
  "required": [
    "amount",
    "direction",
    "province"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "20.16.0",
    "calculatorUrl": "https://askcalculators.com/ca/sales-tax/",
    "queryExample": "https://askcalculators.com/ca/sales-tax/?amount=100&direction=exclusive&province=ON",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "Exclusive tax = price × combined rate. Inclusive pretax price = total / (1 + combined rate).",
      "note": "Inputs are converted to canonical units before evaluating this stated formula."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/v20-ca-sales-tax.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "20.16.0",
      "referenceCoverage": "references-listed",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "before": {
        "title": "Price before tax",
        "type": "number",
        "x-format": "currency",
        "x-currency": "CAD",
        "x-digits": 2
      },
      "ratePercent": {
        "title": "Combined rate used, %",
        "type": "number",
        "x-format": "number",
        "x-digits": 2
      },
      "tax": {
        "title": "Sales tax",
        "type": "number",
        "x-format": "currency",
        "x-currency": "CAD",
        "x-digits": 2
      },
      "total": {
        "title": "Total including tax",
        "type": "number",
        "x-format": "currency",
        "x-currency": "CAD",
        "x-digits": 2,
        "x-primary": true
      }
    }
  }
}
