Skip to content

Crypto taxes in Spain (IRPF) · private beta Your crypto, in order Your tax return, worked out by lot

PortCodex reads your wallet history on seven networks, works out your gains and losses with lot-based FIFO and gives you the Modelo 100 breakdown by box to carry over to your return or take to your advisor. Built for people who file taxes in Spain.

See what it reads

Free private beta, by invitation: no paid plans yet. We email you when there is a spot for your portfolio.

Public addresses only. We never ask for keys or seed phrases.

OverviewSample data

Net worth

€48,230.15

  • Ethereum · Base€21,480.40
  • Solana€9,312.75
  • Bitcoin€17,437.00

Capital gain this tax year

€3,412.80

Calculated with lot-based FIFO

Networks and protocols it reads and recognizes

History and balances on seven networks, plus HyperEVM through ProjectX positions. It recognizes operations from 50 DeFi protocols.

Reads addresses on

  • Bitcoin
  • Solana
  • Ethereum
  • Arbitrum
  • Base
  • Polygon
  • BNB Chain
  • HyperEVM

Recognized DeFi protocols, among others

Before you add your first address

Every swap is taxable, even if you never sell for euros.

Swapping one token for another, collecting staking rewards or moving liquidity in DeFi all have tax consequences. Rebuilding it by hand from block explorers and spreadsheets takes hours of work and is easy to get wrong.

How it works

Built for Spanish tax rules

PortCodex calculates with the rules of Spain’s income tax (IRPF), not a generic method.

For you and your advisor

A clear portfolio for the investor and a working access for whoever prepares the return.

Modelo 100, box by box

Each disposal is assigned to its tax category and the year is added up by box, with loss offsetting. Every figure traces back to the operation behind it.

Movements classified, doubtful ones sent for review

It reads each network’s history and values every movement in euros. What is unambiguous is classified on its own; anything doubtful goes to the on-chain inbox for you to confirm. If history is missing, it flags it instead of making up a cost.

The PDF report for your advisor

The year’s disposals, the offset and the breakdown by box, in a document your advisor can review.

How it works

  1. Add your addresses

    Paste the public address of each wallet. You connect no wallets and sign nothing.

  2. We read the history

    We walk every network, value each movement in euros and classify it.

  3. Review and download

    Check your portfolio and your tax year whenever you like and download the PDF report.

Frequently asked questions

The usual questions before getting started. If yours is missing, write to us through support.

What is PortCodex?

An app that brings your crypto wallets together, keeps their books current and works out their tax position in Spain. It reads the history of your public addresses, values every movement in euros and calculates your capital gains and losses with lot-based FIFO. The result is indicative and does not replace a tax advisor.

Do I have to hand over my private keys?

No. We only need public addresses, and access is read-only. We will never ask for private keys or seed phrases, or for you to connect your wallet or sign anything.

Which networks do you read?

History and balances on Bitcoin, Solana, Ethereum, Arbitrum, Base, Polygon and BNB Chain. On HyperEVM we only read ProjectX positions.

Which DeFi positions do you read?

On the EVM networks where they are deployed, Aave v3 loans and Uniswap v3 and PancakeSwap v3 liquidity; ProjectX liquidity on HyperEVM; and on Solana, Kamino, Orca, Meteora and Jupiter Lend positions. We read them straight from the contract or from the protocol’s public API. V3 pool fees, Aave v3 interest and the rewards from Lido (stETH) and native Solana staking are detected on their own; other staking rewards are recorded from Portfolio. Other protocols are not read as positions yet.

What about my exchanges?

We do not read exchanges automatically. You can add their balance by hand, choosing each one when you create the position, with its acquisition date and total cost: it counts for Modelo 721 and the wealth taxes on 31 December of every year you held it (also in a closed tax year, although with a snapshot of that year end from before PortCodex told what is read on-chain apart from what is added by hand it may be left out, and Tax says so. For the wealth taxes, without a snapshot of what is read on-chain at that year end, only if what you added by hand already exceeds the threshold). If you move a balance from the exchange to a wallet you also have here, record the withdrawal on the exchange as “Transfer to a wallet of your own” so it is not counted twice: it is not a sale and the cost is kept. What happened inside the exchange does not show in PortCodex.

Does it help with my income tax return?

It works out the year’s capital gains and losses with lot-based FIFO and gives you a PDF report to carry into your return or hand to your advisor. You or your advisor file it.

I am an advisor. Can I manage my clients?

Yes. You create your firm and your clients invite it with your firm's code, or accept the invitation you send them; they choose whether you can manage or only view. You see each client’s portfolio and inbox to review their movements, and the client can withdraw your access whenever they like.

Do I have to report if I never sold for euros?

You may have to: swapping one token for another can create a capital gain or loss even if you never go through euros. Each case depends on your circumstances: ask your advisor. Swaps guide

What happens if I do not report it?

Not reporting a capital gain can lead the tax authority to regularize it, with surcharges, interest and, depending on the case, penalties. This is general information, not advice: ask your advisor. See the tax guides

See all questions, with longer answers

Get ready for your next tax return

Spanish tax season opens in April. Get on the list and, when there is room, all you do is add one address.

Private beta

Request beta access

Leave your email and we write to you when there is room for your portfolio. We only use it to let you know and to decide which networks to prioritize; no newsletters.

One email when there is room. No newsletters. You can ask us to delete it at any time.