> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconcha.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Tax Year Calculations

> Get daily validator rewards for a tax year and value them in fiat, with the income report, one aggregated API call per day, or per-epoch iteration

> [!WARNING]
>
> **Disclaimer:** This guide provides technical instructions for fetching reward data. It is not tax advice. Consult a qualified tax professional for guidance on how staking rewards should be reported in your jurisdiction.

## Overview

Most tax jurisdictions require you to report the **fiat value** of staking rewards at the time they were received. For that you need:

1. **Reward amount** for each day (or each epoch)
2. **Historical ETH price** for that day
3. **Calculation:** `fiat_value = reward_eth × price_at_time`

## Choose Your Approach

| Approach | Plan needed | Requests for one tax year | Fiat values |
| - | - | - | - |
| [Income report](https://docs.beaconcha.in/explorer/income-tax-report.md) on the website | Premium monitoring plan (Guppy, Dolphin, or Orca) | None | Included, at each UTC day's historical price |
| [One `rewards-aggregate` call per UTC day](#daily-totals-with-rewards-aggregate) 💎 | Scale or Enterprise API plan | 365, if one selector (for example a `dashboard_id`) covers all your validators | Add your own price data |
| [Per-epoch `rewards-list` iteration](#per-epoch-iteration) | Any API plan | About 82,000 per 10 validators | Add your own price data |

For example, for 100 validators on the Scale plan (5 requests per second), the daily aggregate takes 365 requests (just over a minute), while per-epoch iteration takes about 820,000 requests (about 45 hours), because `rewards-list` returns at most 10 validators per page.

***

## Income Report (No Code)

The [income report](https://docs.beaconcha.in/explorer/income-tax-report.md) gives you daily rewards for up to 366 days, valued in a fiat currency at each day's historical price, with CSV exports for your tax return or tax software. It opens on your last finished tax year, whether it starts on January 1 or, as in the United Kingdom, on another date, so a full tax year is a single report. It needs a [Premium monitoring plan](https://beaconcha.in/pricing?product=monitoring).

***

## Daily Totals with Rewards Aggregate

With a [Scale or Enterprise plan](https://beaconcha.in/pricing), call [Rewards Aggregated](https://docs.beaconcha.in/api-reference/ethereum/validators/rewards-aggregate.md) once per UTC day with a custom `timestamp` range. Each call sums all validators the selector matches, so with a `dashboard_id`, `withdrawal`, or `deposit_address` selector the request count doesn't grow with your validator count (`validator_identifiers` takes at most 100 validators per request).

Set `start` to 00:00:00 UTC and `end` to 23:59:59 UTC of the same day. Custom ranges are rounded outward to whole UTC days, so an `end` of 00:00:00 on the next day would add that whole day as well. This request covers January 1, 2025:

```bash theme={null}
curl --request POST \
  --url https://beaconcha.in/api/v2/ethereum/validators/rewards-aggregate \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chain": "mainnet",
  "validator": { "dashboard_id": 123 },
  "range": {
    "timestamp": { "start": 1735689600, "end": 1735775999 }
  }
}
'
```

`data.total` is that day's net reward (rewards minus penalties) in wei. Divide by 10^18 for ETH and multiply by the day's price. Repeat for each day of the year, adding 86,400 seconds to both timestamps each time. The response `range` reports the range the data actually covers.

A day before the first of the selected validators had a validator index has no data, so the call answers `404` with `no validator rewards data available for the requested range and validators`. A selector that matches no validators gets the same answer. To tell the two apart, check the selector once with a named window, for example `"range": { "evaluation_window": "24h" }`. If that call returns `200`, count a day before the first of your validators was activated that answers `404` as zero rewards. Any other `404` for a past day means the data is missing or not aggregated yet: retry later, and report it if it persists.

> [!NOTE]
>
> The rolling windows (`24h`, `7d`, `30d`, `90d`) and `all_time` return one total for the whole window, so you can't match them with daily prices. A custom range of one UTC day can.

***

## Per-Epoch Iteration

On any plan, or when you need values per epoch, iterate the epochs of the year with the [Rewards List](https://docs.beaconcha.in/api-reference/ethereum/validators/rewards-list.md) endpoint. See [Custom Range Rewards](https://docs.beaconcha.in/api/use-cases/rewards/custom-range.md#per-epoch-iteration) for the approach and performance estimates.

> [!WARNING]
>
> **API Usage:** A full tax year contains about 82,000 epochs, and each epoch needs at least one request: `rewards-list` returns at most 10 validators per page, so each further 10 validators add another request per epoch. Make sure your API plan supports this volume.

***

## Obtaining Historical ETH Prices

The rewards endpoints return amounts in wei, without fiat values. For the API approaches, you need historical ETH prices for each day. Common sources include:

| Source | Notes |
| - | - |
| [CoinGecko API](https://www.coingecko.com/en/api) | Free tier available, daily historical prices |
| [CryptoCompare](https://min-api.cryptocompare.com/) | Hourly historical data available |
| [Kraken](https://docs.kraken.com/rest/) | Exchange prices, high accuracy |
| Tax software | Many crypto tax tools include price data |

> [!TIP]
>
> For tax compliance, use a consistent price source throughout your calculations and document which source you used.

***

## Common Tax Year Time Zone Offsets

The income report and custom ranges work in UTC days. If your tax year follows a local time zone, the first and last day of the year are shifted by your UTC offset. Where that matters, use per-epoch data for those boundary hours.

| Region | Time Zone | UTC Offset | Notes |
| - | - | - | - |
| UK | GMT/BST | 0 / +1 | BST during summer |
| Central Europe | CET/CEST | +1 / +2 | CEST during summer |
| US Eastern | EST/EDT | -5 / -4 | EDT during summer |
| US Pacific | PST/PDT | -8 / -7 | PDT during summer |
| Japan | JST | +9 | No daylight saving |
| Australia Eastern | AEST/AEDT | +10 / +11 | AEDT during summer |

> [!NOTE]
>
> For tax purposes, use your local time zone's **standard offset** (non-daylight-saving) or consult with your tax authority about which time zone to use. Some jurisdictions may require UTC.

***

## Related Resources

* [Income & Tax Report](https://docs.beaconcha.in/explorer/income-tax-report.md): Daily rewards with fiat values and CSV exports, no code
* [Introduction](https://docs.beaconcha.in/api/use-cases/rewards.md): Overview and endpoint comparison
* [Custom Range Rewards](https://docs.beaconcha.in/api/use-cases/rewards/custom-range.md): Aggregated custom ranges and per-epoch iteration
* [Epoch & Time Zone Conversion](https://docs.beaconcha.in/api/use-cases/rewards/epoch-time-zone-conversion.md): Time constants for epoch and timestamp math
* [Pagination Guide](https://docs.beaconcha.in/api/pagination.md)

> [!TIP]
>
> **PRO Feature:** With a [Scale or Enterprise plan](https://beaconcha.in/pricing), you can query by `withdrawal` address to capture all validators, and benefit from significantly higher rate limits. Use [dashboards with groups](https://docs.beaconcha.in/api/use-cases/rewards/dashboard-private-sets.md) to organize validators and query them efficiently with a single `dashboard_id`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.