Sweden (SE)

Swedish VAT Number Validation

Format, pattern, and Luhn checksum algorithm for SE VAT numbers

Swedish VAT numbers (Momsregistreringsnummer) consist of 12 digits: a 10-digit identifier (organisation number for legal entities or personal identity number for sole traders) followed by '01'.

Format vs. Active Validation

This checks format only, not if a VAT number is really registered. Use VatDB's API to verify if a number is really registered and active. VatDB checks official EU and national datasources.

Format Overview

Property Value
Country Code SE
Format 12 digits (10-digit organisation/personal number + 01)
Length 12 digits (14 characters with SE country prefix)
Examples SE556703748501 SE556074755101 SE556012579001

Regex Pattern

^SE[0-9]{10}01$

Structure

  • Digits 1-10: Organisation number or personal identity number (Luhn-checked)
  • Digits 11-12: Always "01"

Checksum Algorithm (Luhn on first 10 digits)

def validate_se_vat(number):
    if number.startswith('SE'):
        number = number[2:]

    if len(number) != 12 or not number.isdigit():
        return False

    # Last two digits must be 01
    if number[10:] != '01':
        return False

    # Luhn check on first 10 digits
    identifier = number[:10]
    total = 0
    for i, digit in enumerate(reversed(identifier)):
        d = int(digit)
        if i % 2 == 1:
            d = d * 2
            if d > 9:
                d -= 9
        total += d

    return total % 10 == 0

Important Notes

  • Swedish VAT numbers are sometimes written with spaces or hyphens for readability. You should normalize SE 556703-7485 01 to SE556703748501 before checking.
  • Some legacy formats include a county-code prefix, such as 01-556111-2345-01 (01 for Stockholm). Treat these as historical forms, all current SE VAT numbers should just use "SE" as a prefix.

Frequently Asked Questions

How do I verify a Swedish VAT number?

Swedish VAT numbers use a Luhn checksum on the first 10 digits, and the last 2 digits are always '01'. Passing this check only proves the number is well-formed, not that it is actually registered or active. Use VatDB's API for official verification against EU and national databases.

What does a Swedish VAT number look like?

A Swedish VAT number has the format SE556703748501 - SE followed by 12 digits. The first 10 are the organisation/personal identifier, the last 2 are always '01'.

How many digits are in a Swedish VAT number?

A Swedish VAT number contains exactly 12 digits after the SE country code: a 10-digit organisation/personal identifier + '01'. Complete length is 14 characters.

What is in the first 10 digits of a Swedish VAT number?

The first 10 digits are a Swedish identifier with a Luhn checksum: usually an organisationsnummer for legal entities, or a personal identity number for sole traders. The VAT number appends '01'.

Why do Swedish VAT numbers always end in 01?

Official current Swedish VAT numbers always end in '01'. The 10 digits before it are the Swedish organisation or personal identifier.

Where can I check a Swedish VAT number?

Check VAT numbers using VatDB's API for real-time validation against official EU and national databases, with trader details included when available.

What's the difference between format validation and checking if a VAT number is active?

Just because a number passes the checksum test, it doesn't mean it is really registered and active. Use VatDB to confirm the current registration status of a Swedish VAT number.

Which real Swedish VAT numbers can I use to test validation?

Three live Swedish (SE) VAT numbers to experiment with: SE556703748501, SE556074755101, SE556012579001.

Validate Swedish VAT Numbers Instantly

Use our API for real-time SE VAT number validation

Try Free