# Spanish VAT (NIF/CIF) Validator & VIES Check
> Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Spain (ES) VAT numbers.

- **Canonical URL:** https://stanzaapi.com/tools/vat-validator/vies/spain-es
- **Governing Standard:** EU Council Directive 2006/112/EC (European Commission Taxation & Customs Union (VIES))
- **Latency:** <1ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
In Spain, the Value Added Tax (VAT) identification number begins with the country prefix 'ES', followed by the national format: 8 digits plus letter, or letter plus 7 digits plus letter (NIF/CIF).

The number format is governed by national tax authorities and verified via strict syntax and structural pattern matching.

For 2026 tax calculations, the standard VAT rate in Spain is 21%, with applicable reduced rates of 10%, 4%.

## Specification Matrix
| Parameter | Value | Details |
| --- | --- | --- |
| Country Prefix | ES | ISO 3166-1 alpha-2 / VIES code |
| Local Identifier Name | NIF / CIF | National statutory tax terminology |
| Format Structure | 8 digits plus letter, or letter plus 7 digits plus letter (NIF/CIF) | National syntax specification |
| Checksum Algorithm | Format & regex validation | Offline check digit formula |
| 2026 Standard VAT Rate | 21% | Standard statutory rate |
| 2026 Reduced VAT Rates | 10%, 4% | Applicable reduced & super-reduced rates |

## Standard JSON Response Model
```json
{
  "valid": true,
  "countryCode": "ES",
  "countryName": "Spain",
  "vatNumber": "ES123456789",
  "syntaxValid": true,
  "checksumValid": true,
  "rates": {
    "standardRate": 21,
    "reducedRates": [
      10,
      4
    ],
    "effectiveYear": 2026
  }
}
```

## Frequently Asked Questions & Edge Cases
### Q: What is the standard VAT rate in Spain for 2026?
**A:** The standard VAT rate in Spain is 21%. Certain qualifying goods and services are eligible for reduced rates of 10%, 4%.

### Q: What is the official structure of a Spain (ES) VAT number?
**A:** A valid Spain VAT number begins with the country code 'ES', followed by 8 digits plus letter, or letter plus 7 digits plus letter (NIF/CIF). Known locally as NIF / CIF, it is used for domestic invoicing and intra-EU cross-border trade.

### Q: Can Spain VAT numbers be validated offline without VIES downtime?
**A:** Yes. Our API executes deterministic mathematical checksums and regex format rules at the Cloudflare edge in <1ms, shielding your checkout flow from slow or offline European Commission VIES servers.

### Q: How do I verify if a Spain company is eligible for cross-border zero-rated B2B invoicing?
**A:** Under EU Directive 2006/112/EC, intra-community supply of goods and services is zero-rated when both seller and buyer have valid VIES VAT registrations. Validating the Spain VAT check digit and syntax confirms compliance prior to transaction settlement.
