{
  "$comment": "Machine-readable companion to https://valem.run/calculators/argentina/vat. Formula, inputs, outputs, engine-verified test vectors, cited sources and the re-runnable Valem ModelSpec behind the page.",
  "url": "https://valem.run/calculators/argentina/vat",
  "dataUrl": "https://valem.run/calculators/argentina/vat.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Argentina iva (vat) model by Valem (https://valem.run/calculators/argentina/vat), 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/argentina/vat/verify",
  "country": "argentina",
  "countryName": "Argentina",
  "formula": "vat",
  "formulaName": "IVA (VAT)",
  "title": "Calculadora IVA 2026 — Argentina VAT calculator",
  "answer": "Argentine IVA is 21% as the general rate, 10,5% on reduced supplies — exactly half the general rate — and 27% on metered gas, electricity and water billed to registered businesses outside dwellings.",
  "lang": "en",
  "currency": "ARS",
  "taxYear": "2026",
  "verification": {
    "claim": "internal-consistency",
    "statement": "The Valem engine reproduces this model's stated formula through 6 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": 6,
    "ratesAreIllustrative": false,
    "sourcesCheckedOn": "2026-10-05"
  },
  "sources": [
    {
      "label": "Infoleg - Ley de IVA art. 28: 21% general, 27% incrementada, reducida al 50% de la general",
      "url": "https://servicios.infoleg.gob.ar/infolegInternet/anexos/40000-44999/42701/texact.htm",
      "checked": "2026-10-05"
    }
  ],
  "terminalOutput": "grossAmount",
  "headlineOutput": "vatAmount",
  "inputs": [
    {
      "name": "amount",
      "type": "number",
      "label": "Amount",
      "minimum": 0
    },
    {
      "name": "direction",
      "type": "string",
      "label": "Direction",
      "enum": [
        "add",
        "remove"
      ]
    },
    {
      "name": "category",
      "type": "string",
      "label": "What is being supplied",
      "enum": [
        "standard",
        "reduced1",
        "increased"
      ]
    },
    {
      "name": "reverseCharge",
      "type": "boolean",
      "label": "B2B reverse charge applies"
    }
  ],
  "outputs": [
    {
      "name": "rate",
      "type": "number",
      "formula": "category = 'reduced1' ? $const.standardRate * $const.reducedRateFraction : category = 'increased' ? $const.increasedRate : $const.standardRate"
    },
    {
      "name": "effectiveRate",
      "type": "number",
      "formula": "reverseCharge ? 0 : rate"
    },
    {
      "name": "netAmount",
      "type": "number",
      "formula": "direction = 'remove' ? $round(amount / (1 + effectiveRate), 2) : $round(amount, 2)"
    },
    {
      "name": "vatAmount",
      "type": "number",
      "formula": "$round(netAmount * effectiveRate, 2)"
    },
    {
      "name": "grossAmount",
      "type": "number",
      "formula": "$round(netAmount + vatAmount, 2)"
    }
  ],
  "testCases": [
    {
      "description": "S1 100.00 ARS net at the alicuota general",
      "given": {
        "amount": 100,
        "direction": "add",
        "category": "standard",
        "reverseCharge": false
      },
      "expect": {
        "vatAmount": 21,
        "grossAmount": 121,
        "netAmount": 100
      }
    },
    {
      "description": "S2 121.00 ARS gross back to net at 21%",
      "given": {
        "amount": 121,
        "direction": "remove",
        "category": "standard",
        "reverseCharge": false
      },
      "expect": {
        "netAmount": 100,
        "vatAmount": 21
      }
    },
    {
      "description": "S3 the reduced rate is half the general one: 10,5% of 200.00",
      "given": {
        "amount": 200,
        "direction": "add",
        "category": "reduced1",
        "reverseCharge": false
      },
      "expect": {
        "rate": 0.105,
        "vatAmount": 21,
        "grossAmount": 221
      }
    },
    {
      "description": "S4 100.00 ARS of metered electricity to a registered business at 27%",
      "given": {
        "amount": 100,
        "direction": "add",
        "category": "increased",
        "reverseCharge": false
      },
      "expect": {
        "vatAmount": 27,
        "grossAmount": 127
      }
    },
    {
      "description": "S5 the increased rate really is above the general one",
      "given": {
        "amount": 1000,
        "direction": "add",
        "category": "increased",
        "reverseCharge": false
      },
      "expect": {
        "vatAmount": 270
      }
    },
    {
      "description": "S6 reverse charge: the supplier charges no IVA",
      "given": {
        "amount": 100,
        "direction": "add",
        "category": "standard",
        "reverseCharge": true
      },
      "expect": {
        "vatAmount": 0,
        "grossAmount": 100
      }
    }
  ],
  "spec": {
    "id": "vat-argentina",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "minimum": 0
        },
        "direction": {
          "type": "string",
          "enum": [
            "add",
            "remove"
          ]
        },
        "category": {
          "type": "string",
          "enum": [
            "standard",
            "reduced1",
            "increased"
          ]
        },
        "reverseCharge": {
          "type": "boolean"
        },
        "rate": {
          "type": "number",
          "readOnly": true
        },
        "effectiveRate": {
          "type": "number",
          "readOnly": true
        },
        "netAmount": {
          "type": "number",
          "readOnly": true
        },
        "vatAmount": {
          "type": "number",
          "readOnly": true
        },
        "grossAmount": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {
      "standardRate": 0.21,
      "reducedRateFraction": 0.5,
      "increasedRate": 0.27
    },
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'amount': 100, 'direction': 'add', 'category': 'standard', 'reverseCharge': false }"
      }
    ],
    "derivations": [
      {
        "path": "$.rate",
        "expr": "category = 'reduced1' ? $const.standardRate * $const.reducedRateFraction : category = 'increased' ? $const.increasedRate : $const.standardRate"
      },
      {
        "path": "$.effectiveRate",
        "expr": "reverseCharge ? 0 : rate"
      },
      {
        "path": "$.netAmount",
        "expr": "direction = 'remove' ? $round(amount / (1 + effectiveRate), 2) : $round(amount, 2)"
      },
      {
        "path": "$.vatAmount",
        "expr": "$round(netAmount * effectiveRate, 2)"
      },
      {
        "path": "$.grossAmount",
        "expr": "$round(netAmount + vatAmount, 2)"
      }
    ],
    "constraints": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "VAT",
          "layout": "vertical",
          "components": [
            {
              "id": "note",
              "type": "staticText",
              "text": "Argentina is the only country in this catalog with a rate ABOVE its standard one. Article 28 sets the general rate at 21% and then INCREASES it to 27% for metered gas, electricity and water - but only where the supply is outside premises used exclusively as a dwelling AND the customer is registered for the tax, so the same utility bill is 21% to a household and 27% to a registered business. The reduced band is stranger still: the statute never states 10,5%. It says those supplies take \"una alicuota equivalente al cincuenta por ciento (50%) de la establecida en el primer parrafo\" - half the general rate - so 10,5% is a consequence rather than a figure, and this page computes it that way. This page covers the rate schedule only."
            },
            {
              "id": "inputs",
              "type": "fieldSet",
              "label": "Your figures",
              "components": [
                {
                  "id": "amount",
                  "type": "numericField",
                  "label": "Amount",
                  "bind": "$.amount",
                  "helperText": "Net amount when adding VAT, gross amount when removing it."
                },
                {
                  "id": "direction",
                  "type": "selectField",
                  "label": "Direction",
                  "bind": "$.direction",
                  "options": [
                    {
                      "value": "add",
                      "label": "Add VAT (net → gross)"
                    },
                    {
                      "value": "remove",
                      "label": "Remove VAT (gross → net)"
                    }
                  ]
                },
                {
                  "id": "category",
                  "type": "selectField",
                  "label": "What is being supplied",
                  "bind": "$.category",
                  "helperText": "The rate follows the category. Exports and intra-EU supplies are zero-rated or exempt — a different mechanism, not a rate you pick here.",
                  "options": [
                    {
                      "value": "standard",
                      "label": "Alicuota general - 21%"
                    },
                    {
                      "value": "reduced1",
                      "label": "Alicuota reducida - 10,5% (half the general rate: meat, fruit, vegetables, bread)"
                    },
                    {
                      "value": "increased",
                      "label": "Alicuota incrementada - 27% (metered gas, electricity and water to registered business users)"
                    }
                  ]
                },
                {
                  "id": "reverseCharge",
                  "type": "checkboxField",
                  "label": "B2B reverse charge applies",
                  "bind": "$.reverseCharge",
                  "helperText": "The customer accounts for the VAT, so you charge none."
                }
              ]
            },
            {
              "id": "sep",
              "type": "separatorLine"
            },
            {
              "id": "vatTile",
              "type": "statTile",
              "label": "VAT",
              "value": "$.vatAmount"
            },
            {
              "id": "netTile",
              "type": "statTile",
              "label": "Net",
              "value": "$.netAmount"
            },
            {
              "id": "grossTile",
              "type": "statTile",
              "label": "Gross",
              "value": "$.grossAmount"
            },
            {
              "id": "breakdown",
              "type": "keyValueList",
              "label": "Detail",
              "items": [
                {
                  "label": "Rate applied",
                  "value": "$.effectiveRate"
                },
                {
                  "label": "Statutory rate for this category",
                  "value": "$.rate"
                }
              ]
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Sources",
              "layers": 1,
              "items": [
                {
                  "label": "Infoleg - Ley de IVA art. 28: 21% general, 27% incrementada, reducida al 50% de la general",
                  "url": "https://servicios.infoleg.gob.ar/infolegInternet/anexos/40000-44999/42701/texact.htm",
                  "date": "2026-10-05",
                  "covers": [
                    "standardRate",
                    "increasedRate",
                    "reducedRateFraction"
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "S1 100.00 ARS net at the alicuota general",
        "given": {
          "$.amount": 100,
          "$.direction": "add",
          "$.category": "standard",
          "$.reverseCharge": false
        },
        "expect": {
          "$.vatAmount": 21,
          "$.grossAmount": 121,
          "$.netAmount": 100
        }
      },
      {
        "description": "S2 121.00 ARS gross back to net at 21%",
        "given": {
          "$.amount": 121,
          "$.direction": "remove",
          "$.category": "standard",
          "$.reverseCharge": false
        },
        "expect": {
          "$.netAmount": 100,
          "$.vatAmount": 21
        }
      },
      {
        "description": "S3 the reduced rate is half the general one: 10,5% of 200.00",
        "given": {
          "$.amount": 200,
          "$.direction": "add",
          "$.category": "reduced1",
          "$.reverseCharge": false
        },
        "expect": {
          "$.rate": 0.105,
          "$.vatAmount": 21,
          "$.grossAmount": 221
        }
      },
      {
        "description": "S4 100.00 ARS of metered electricity to a registered business at 27%",
        "given": {
          "$.amount": 100,
          "$.direction": "add",
          "$.category": "increased",
          "$.reverseCharge": false
        },
        "expect": {
          "$.vatAmount": 27,
          "$.grossAmount": 127
        }
      },
      {
        "description": "S5 the increased rate really is above the general one",
        "given": {
          "$.amount": 1000,
          "$.direction": "add",
          "$.category": "increased",
          "$.reverseCharge": false
        },
        "expect": {
          "$.vatAmount": 270
        }
      },
      {
        "description": "S6 reverse charge: the supplier charges no IVA",
        "given": {
          "$.amount": 100,
          "$.direction": "add",
          "$.category": "standard",
          "$.reverseCharge": true
        },
        "expect": {
          "$.vatAmount": 0,
          "$.grossAmount": 100
        }
      }
    ]
  }
}
