{
  "$comment": "Machine-readable companion to https://valem.run/calculators/hungary/car-tax. Formula, inputs, outputs, engine-verified test vectors, cited sources and the re-runnable Valem ModelSpec behind the page.",
  "url": "https://valem.run/calculators/hungary/car-tax",
  "dataUrl": "https://valem.run/calculators/hungary/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Hungary gépjárműadó model by Valem (https://valem.run/calculators/hungary/car-tax), CC BY 4.0.",
    "note": "Covers the model — the expression of each rule and the arrangement of the catalog. The rates and thresholds themselves are law and are not licensed by anyone; the cited sources are where they come from."
  },
  "verificationUrl": "https://valem.run/calculators/hungary/car-tax/verify",
  "country": "hungary",
  "countryName": "Hungary",
  "formula": "car-tax",
  "formulaName": "Gépjárműadó",
  "title": "Gépjárműadó Kalkulátor — Hungary car tax",
  "answer": "Hungary's annual car tax is engine power in kilowatts times an age-banded rate that decreases as the car gets older.",
  "lang": "en",
  "currency": "HUF",
  "taxYear": "2026",
  "verification": {
    "claim": "internal-consistency",
    "statement": "The Valem engine reproduces this model's stated formula through 2 self-test cases (below, and re-runnable against the spec). That asserts internal consistency, NOT that the formula matches current law — the cited sources are the evidence for that, and carry the date each was last checked.",
    "selfTestCases": 2,
    "ratesAreIllustrative": false,
    "sourcesCheckedOn": "2026-08-02"
  },
  "sources": [
    {
      "label": "NAV",
      "url": "https://nav.gov.hu",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "kw",
      "type": "number",
      "label": "Teljesítmény (kW)",
      "minimum": 0
    },
    {
      "name": "ageYears",
      "type": "number",
      "label": "Kor (év)",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "rate",
      "type": "number",
      "label": "Ráta (HUF / kW)",
      "formula": "($a := ageYears; $a <= 3 ? 375 : $a <= 7 ? 325 : $a <= 11 ? 250 : $a <= 15 ? 205 : 150)"
    },
    {
      "name": "tax",
      "type": "number",
      "label": "Éves adó",
      "format": "currency",
      "formula": "$round(kw * rate, 2)"
    }
  ],
  "testCases": [
    {
      "description": "C1 90 kW, 5 years old",
      "given": {
        "kw": 90,
        "ageYears": 5
      },
      "expect": {
        "rate": 325,
        "tax": 29250
      }
    },
    {
      "description": "C2 140 kW, 2 years old",
      "given": {
        "kw": 140,
        "ageYears": 2
      },
      "expect": {
        "rate": 375,
        "tax": 52500
      }
    }
  ],
  "spec": {
    "id": "car-tax-hungary",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "kw": {
          "type": "number",
          "minimum": 0
        },
        "ageYears": {
          "type": "number",
          "minimum": 0
        },
        "rate": {
          "type": "number",
          "readOnly": true
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {},
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'kw': 90, 'ageYears': 5 }"
      }
    ],
    "derivations": [
      {
        "path": "$.rate",
        "expr": "($a := ageYears; $a <= 3 ? 375 : $a <= 7 ? 325 : $a <= 11 ? 250 : $a <= 15 ? 205 : 150)"
      },
      {
        "path": "$.tax",
        "expr": "$round(kw * rate, 2)"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Gépjárműadó",
          "layout": "vertical",
          "components": [
            {
              "id": "kw",
              "type": "numericField",
              "label": "Teljesítmény (kW)",
              "bind": "$.kw"
            },
            {
              "id": "age",
              "type": "numericField",
              "label": "Kor (év)",
              "bind": "$.ageYears"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Éves adó",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "HUF"
                }
              ]
            },
            {
              "id": "breakdown",
              "type": "keyValueList",
              "label": "Számítás",
              "items": [
                {
                  "label": "Ráta (HUF / kW)",
                  "bind": "$.rate"
                },
                {
                  "label": "Éves adó",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "HUF"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Magyarország gépjárműadó 2026: kW × korsávos ráta — 375 (0-3 év), 325 (4-7), 250 (8-11), 205 (12-15), 150 (16+) HUF/kW. Becslés, nem adótanácsadás.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Források",
              "items": [
                {
                  "label": "NAV",
                  "url": "https://nav.gov.hu",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 90 kW, 5 years old",
        "given": {
          "$.kw": 90,
          "$.ageYears": 5
        },
        "expect": {
          "$.rate": 325,
          "$.tax": 29250
        }
      },
      {
        "description": "C2 140 kW, 2 years old",
        "given": {
          "$.kw": 140,
          "$.ageYears": 2
        },
        "expect": {
          "$.rate": 375,
          "$.tax": 52500
        }
      }
    ]
  }
}
