Skip to main content

AFM / ΑΦΜ Generator (Greece Tax ID)

Generate and format valid Greek AFM / ΑΦΜ tax numbers for software development and QA testing.

Waiting for generation...

About Greek AFM / ΑΦΜ (Tax Identification Number)

The AFM (Arithmos Forologikou Mitroou - Αριθμός Φορολογικού Μητρώου) is the single taxpayer identification number for individuals and corporations in Greece, administered by the Independent Authority for Public Revenue (AADE / IAPR).

It contains exactly 9 decimal digits. The first 8 digits form the base sequential number, and the 9th digit is a check digit calculated using a Module 11 algorithm weighted by decreasing powers of 2.

Check Digit Calculation Algorithm

  1. Multiply the first 8 digits by decreasing powers of 2: d1×256, d2×128, d3×64, d4×32, d5×16, d6×8, d7×4, d8×2.
  2. Sum all 8 weighted multiplication products.
  3. Calculate the remainder of the sum divided by 11 (Sum % 11).
  4. The check digit is the remainder modulo 10 (Remainder % 10). If remainder is 10, check digit is 0.

Frequently Asked Questions & Technical Guidelines