Get a quote−50% setup fee today
Questions?Message us on WhatsApp

Reference number calculator: create a reference number, a series of references and an RF reference

The reference number calculator works out the check digit of a Finnish reference number (viitenumero) from the base part, which is usually the invoice number. Enter the base part and the calculator adds the check digit at the end, groups the reference into groups of five digits and converts it into an RF reference. With the same calculator, you can create a series of consecutive references and check whether a reference given by a customer is correct. The base part 123456 gives the reference number 12 34561 and the RF reference RF34 1234 561.

Pekka SaarinenPekka SaarinenUpdated

How a reference number is formed

A reference number is the base part with a check digit added after it. The base part has 3–19 digits, so the whole reference has 4–20 digits. Leading zeros are not used.

The check digit is calculated with the 7-3-1 method. Multiply the digits of the base part from right to left by the weights 7, 3, 1, 7, 3, 1 and so on. Add up the products and subtract the sum from the next full ten. If the sum is already a full ten, the check digit is 0.

For the base part 123456, the calculation is 6 × 7 + 5 × 3 + 4 × 1 + 3 × 7 + 2 × 3 + 1 × 1 = 89. The next full ten is 90, so the check digit is 1 and the reference number 1234561. On an invoice, the reference is written in groups of five digits starting from the right: 12 34561. The method is from Finance Finland's guidance on the structure of the domestic reference number.

What is an RF reference and how does the calculator create it?

An RF reference is an international reference under the ISO 11649 standard. It starts with the letters RF, followed by a two-digit check number and a reference part of up to 21 characters. On an invoice, it is written in groups of four characters, for example RF34 1234 561.

The calculator turns a domestic reference into an RF reference with the same calculation as the IBAN check digits. RF00 is added after the reference, the letters are converted into numbers (R = 27, F = 15) and the number is divided by 97. The check number is 98 minus the remainder, as two digits.

According to Finance Finland's guidance, from 18 November 2024 an RF reference doesn't need to be based on a Finnish reference, and the reference part may contain letters. The Check reference tab also accepts such references. An RF reference containing letters can't be converted back into a domestic reference, and no bank barcode can be made from it.

A series of references for invoices and customers

The Create series tab calculates consecutive references in one go. The base part increases by one, and each gets its own check digit. You can copy the series into a spreadsheet or invoicing software.

A year code at the start of the base part, for example 2026001, tells you straight away which year's invoice it is. For recurring payments, such as rent or a membership fee, a customer number works well as the base part of the reference. Finance Finland recommends not putting the instalment number of recurring payments in the reference, because a payment usually settles the oldest receivable. A short reference leads to fewer typing errors.

Reference for the invoice and the bank barcode

If you make the invoice yourself, the invoice form in the invoice template calculates the reference number from the invoice number and adds a virtual barcode to the invoice. You can also create or decode the barcode with the virtual barcode calculator.

The method, a ready reference table for invoices 1000–1005 and an example calculated by hand are in the article reference number check digit by hand. A short definition is in the glossary: reference number.

Frequently asked questions

How is a reference number calculated?+

Multiply the digits of the base part from right to left by the weights 7, 3 and 1, add up the products and subtract the sum from the next full ten. The difference is the check digit, which is added after the base part. The base part 123456 gives the reference number 1234561.

How long can a reference number be?+

A domestic reference number has 4–20 digits: 3–19 digits in the base part and one check digit at the end. Leading zeros are not used. On an invoice, the reference is written in groups of five digits starting from the right.

What is an RF reference?+

An international reference under the ISO 11649 standard. It starts with the letters RF, then comes a two-digit check number and a reference part of up to 21 characters. The domestic reference 1234561 becomes the RF reference RF34 1234 561.

Can a reference number contain letters?+

A domestic reference number only contains digits. Letters are allowed in the reference part of an RF reference. An RF reference containing letters can't be converted into a domestic reference.

Does a payment get through without a reference number?+

Yes, if the account number is correct, but the payment isn't automatically matched to the right invoice. The biller has to look for it by hand. A bank usually won't accept a wrong reference, because the check digit doesn't match.

Read more