Cadastro de Pessoas Físicas
The Cadastro de Pessoas Físicas (CPF) – Portuguese for "Natural Persons Register" – is the Brazilian individual taxpayer registry identification, a number attributed by the Brazilian Federal Revenue to both Brazilians and resident aliens who pay taxes or take part, directly or indirectly, in activities that provide revenue for any of the dozens of different types of taxes existing in Brazil. By means of this universal number the Federal Revenue computers can estimate the income tax that is due, thus directing fiscalisation.
Each individual has a number, formerly printed on a paper document or on a blue plastic credit-card-sized card. Since the 1970s the use of this number has been extended to a series of other purposes, and without a CPF it is almost impossible to lead a normal life in Brazil.
The number printed on the document is an eleven-digit figure, of which the two last numbers are the result of an arithmetic operation on the nine previous ones, so that any typing mistake will result in an invalid number. In the beginning the number used to be temporary but, as too many people used different numbers to evade tax, it is now permanent, though cancelled after some time after the person's death. To stop people from obtaining more than one registration, the registry checks for birth date, mother's name and voting registration number. Because of the permanent character of the registry, one does not actually need to have the card, but only to remember the number.
The possession of the CPF is not required, but it is a prerequisite for such procedures as opening bank accounts, getting or renewing a driver's license, buying or selling real estate, taking loans, applying for jobs, and getting a passport.
Though permanent, the validity of the CPF is not unchallenged: it will be pending after one year or cancelled by omission after two years without paying income tax or making an income tax declaration. To prevent cancellation, people who don't pay income tax formerly needed to send "exempt reports" to the Federal Revenue, but since 2008 this feature is no longer necessary.
If the CPF is pending or cancelled by omission, it still can be regularized by delivering the income tax declaration and paying it, or by paying a regularization fee in the case of people who don't need to pay income tax.
The Federal Revenue has recently issued the "e-CPF", an electronic document that can be used as a nationwide, publicly provided cryptographed signature key.
Validation
Pseudocode for CPF validation algorithm (modulus 11):
- From right to left all digits are multiplied by a decreasing sequence starting with 9.
- The sum of all products is computed.
- The sum of step 2 is taken modulo 11.
- The result of step 3 is taken modulo 10.
- The checkdigit found is appended to the number and steps 1 to 4 are repeated.
function ValidateCPF(cpf: int[11])
var v: int[2]
//Compute 1st verification digit.
v[1] := 1×cpf[1] + 2×cpf[2] + 3×cpf[3]
v[1] += 4×cpf[4] + 5×cpf[5] + 6×cpf[6]
v[1] += 7×cpf[7] + 8×cpf[8] + 9×cpf[9]
v[1] := v[1] mod 11
v[1] := v[1] mod 10
//Compute 2nd verification digit.
v[2] := 1×cpf[2] + 2×cpf[3] + 3×cpf[4]
v[2] += 4×cpf[5] + 5×cpf[6] + 6×cpf[7]
v[2] += 7×cpf[8] + 8×cpf[9] + 9×v[1]
v[2] := v[2] mod 11
v[2] := v[2] mod 10
//True if verification digits are as expected.
return v[1] = cpf[10] and v[2] = cpf[11]
See also
- CNPJ – National Registry of Corporations
- National identification number (section Brazil)
- Registro Geral (Brazilian national ID)
- Social Security number (a similar number in the USA)
- National Insurance number (a similar number in the United Kingdom)
- Social Insurance Number (a similar number in Canada)
- INSEE code (a similar number in France)
- Tax file number (a similar number in Australia)
- Identity Card
External links
- (Portuguese) Receita Federal – Cadastro de Pessoas Físicas – CPF – Federal Revenue site, CPF issuing page.
- (Portuguese) Gerador e Validador de CPFs para desenvolvedores de sites – CPF generator for webpage development.
- CPF Algorithm