> ## 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.

# APY & ROI Metrics

> Calculate annual percentage yield and return on investment for validators

## Overview

The APY & ROI endpoint provides standardized return metrics for your validators, broken down by execution layer (EL) and consensus layer (CL) contributions.

> [!NOTE]
>
> **API Endpoint:** This guide uses [`/api/v2/ethereum/validators/apy-roi`](https://docs.beaconcha.in/api-reference/ethereum/validators/apy-roi) for aggregated return metrics.

> [!NOTE]
>
> **When to use APY/ROI vs BeaconScore®:** APY and ROI measure absolute returns in ETH/percentage terms. BeaconScore® measures relative efficiency normalized for luck (see [residual luck factors](https://docs.beaconcha.in/validator-dashboard/metric-validator-efficiency.md#residual-luck-factors)). For comparing validator performance across operators, BeaconScore® is recommended.

> [!TIP]
>
> **See Also:** For detailed per-epoch missed reward analysis (which duty types are causing losses), see [Analyze Missed Rewards](https://docs.beaconcha.in/use-cases/missed-rewards.md). This endpoint focuses on aggregated return metrics.

***

## Understanding the Metrics

This guide focuses on choosing a window and interpreting the metrics in an operational comparison. See the [APY & ROI API reference](https://docs.beaconcha.in/api-reference/ethereum/validators/apy-roi.md).

> [!WARNING]
>
> APY is an extrapolation based on the selected evaluation window. Past performance does not guarantee future results, especially for execution layer rewards which are highly variable.

***

## Quick Start: Fetch APY & ROI

```bash theme={null}
curl --request POST \
  --url https://beaconcha.in/api/v2/ethereum/validators/apy-roi \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chain": "mainnet",
  "validator": {
    "dashboard_id": 123
  },
  "range": {
    "evaluation_window": "30d"
  }
}
'
```

### Response

```json theme={null}
{
  "data": {
    "execution_layer": {
      "roi": { "total": 0.000329, "missed": 0.0000082 },
      "apy": { "total": 0.004, "missed": 0.0001 }
    },
    "consensus_layer": {
      "roi": { "total": 0.002341, "missed": 0.0000246 },
      "apy": { "total": 0.0285, "missed": 0.0003 }
    },
    "combined": {
      "roi": { "total": 0.002669, "missed": 0.0000329 },
      "apy": { "total": 0.0325, "missed": 0.0004 }
    },
    "finality": "finalized"
  },
  "range": {
    "epoch": { "start": 407453, "end": 414202 },
    "timestamp": { "start": 1763285975, "end": 1765877974 }
  }
}
```

## Evaluation Windows

Choose a window that matches the reporting period, and use the same value for every comparison. See the [APY & ROI API reference](https://docs.beaconcha.in/api-reference/ethereum/validators/apy-roi.md).

> [!TIP]
>
> Longer evaluation windows provide more stable APY estimates. Short windows are heavily influenced by luck (block proposals, MEV).

***

## APY vs BeaconScore®

| Metric | Use Case | Affected By |
| - | - | - |
| **APY** | Absolute return calculation | Luck (proposals, MEV), network conditions |
| **BeaconScore®** | Performance comparison | Primarily validator behavior (normalized for luck; some [residual factors](https://docs.beaconcha.in/validator-dashboard/metric-validator-efficiency.md#residual-luck-factors) remain) |

> [!TIP]
>
> A validator with lower APY might still have a higher BeaconScore® if they were unlucky with block proposals. BeaconScore® largely removes luck from the equation, making it ideal for comparing operator performance. Some [residual luck factors](https://docs.beaconcha.in/validator-dashboard/metric-validator-efficiency.md#residual-luck-factors) can still influence scores over short windows.

***

## Best Practices

> [card] Use 30d+ Windows
>
> Short windows are noisy. Use 30 days or longer for meaningful APY estimates.

> [card] Track EL Separately
>
> EL rewards (MEV) are highly variable. Track them separately from CL rewards.

> [card] Compare Apples to Apples
>
> When comparing validators, ensure they use the same MEV-boost configuration.

> [card] Use BeaconScore® for Ranking
>
> For comparing validator quality, BeaconScore® is more reliable than APY.

***

## Related Resources

* [Monitor Validator Performance](https://docs.beaconcha.in/use-cases/performance-introduction.md) — BeaconScore® metrics
* [Analyze Missed Rewards](https://docs.beaconcha.in/use-cases/missed-rewards.md) — Quantify lost earnings
* [Calculate Validator Rewards](https://docs.beaconcha.in/use-cases/rewards-introduction.md) — Detailed reward breakdowns


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