Archive··3 min read

Earning interest on Revolut? Watch out for the tax you have to calculate yourself

Revolut does not settle Polish capital gains tax on interest. Here is the Python script that pulls NBP rates and builds an Excel sheet for the tax return.

Szymon BubałaPythonautomationtaxes

A script for settling the Polish capital gains tax on Revolut interest

If you use Revolut, you probably already know that the platform does not settle the Polish 19% capital gains tax (the so-called Belka tax) on interest from savings or on crypto gains.

That means you have to report this income yourself in your annual tax return.

I know from experience how tedious it is to convert every amount by hand using the exchange rate from the right day, especially with many transactions.

And Revolut produces plenty of them, because interest is credited daily…

So I wrote a Python script that automates the process.

kalkulator odsetek z walutowych kont oszczędnościowych EUR USD GBP CHF revolut excel skrypt w excelu

The problem with interest in several currencies

If your interest is credited in different currencies, such as EUR, USD or GBP, it gets even more complicated.

For every transaction you would have to look up the exchange rate for the right day by hand, often hundreds of times a year (depending on when you started saving)!

The task is not only tedious, it is also very easy to make a mistake.

My script does it automatically. It downloads rates from the NBP (National Bank of Poland) API, accounts for weekends and public holidays, saves everything to a file and calculates your gains and the tax in PLN in Excel. You no longer type in data or hunt for the rate from a given day.

What you need to use it

It is simple. You need:

  • an Excel sheet with your transactions for the whole year,
  • Python installed on your computer.
Earning interest on Revolut? Watch out for the tax you have to calculate yourself

Importantly, you do not need to send me your interest statement. The script runs locally, on your own computer.

How does the script work?

The script has two stages:

  • Downloading exchange rates from the NBP API: it accounts for weekends and holidays, takes the rate from the previous business day and saves the data to a JSON file.
  • Generating an Excel sheet with: interest in EUR and its PLN conversion, dates and NBP rates, notes on adjustments and day status (weekend, holiday, business day), dynamic summing formulas and conditional cell formatting.

In short: the script is a simple, fast and effective tool that solves a real problem with settling tax on Revolut savings interest in foreign currencies.

The same automation habits show up in two tools I built for my brand Biohac, which helps people look after their health and make better everyday decisions:

  • quiz.biohac.pl: a short quiz that gives you tailored tips on improving sleep and recovery,
  • kalkulatory.biohac.pl: practical health calculators, including a sleep calculator, a sleeping-conditions calculator and a circadian rhythm calculator.

Next step

Let’s talk about your store

Let’s talk about your store →

Keep reading

Ready to build your AI store?

30-minute call. Together we'll map out your store build: what we build, what the AI writes, how we measure results, timeline and price.

No commitment · You keep everything I build