Kointax.ioKointax.io

Bitcoin mining at home with solar energy in Spain: how is it taxed?

Home Bitcoin mining with solar panels is growing in Spain. Guide on taxation of this activity.

Equipo kointax·May 2, 2026·5 min read

Home Bitcoin mining with solar energy in Spain: taxation

Mining = economic activity (if habitual): Requires self-employment registration (autónomo), declare income as business income, deduct expenses.

Mining income: Each BTC mined = business income at market value when received. Same price = acquisition cost for future sales.

Deductible expenses (as autónomo): ASIC/GPU depreciation, electricity consumption (mining portion), self-employment fees, maintenance.

Solar energy: Electricity production cost = deductible. Excess sold to grid = additional taxable income.

Occasional mining: May qualify as capital gain (not business activity) — frontier not clearly defined by AEAT.

kointax correctly classifies mining income as business activity income.

👉 Manage your mining income with kointax

Ready to calculate your crypto taxes?

declaracrypto.es — FIFO, LIFO, HIFO or WAC method. 80+ compatible exchanges. Excel + PDF report ready for your tax return.

Start free — no card needed