> For the complete documentation index, see [llms.txt](https://www.bluegamma.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.bluegamma.io/documentation/methodology/forward-rates.md).

# Forward Rates

How BlueGamma derives forward rates from the bootstrapped curve: a simple rate on the index day count from the ratio of discount factors, with worked examples and the API and Excel calls.

BlueGamma calculates the forward rate between two future dates from the bootstrapped curve: it is the no-arbitrage rate that makes investing to the later date equal to investing to the earlier date and rolling forward. It is returned as a simple rate on the index's day count, f = (DF(t)/DF(T) − 1)/τ, where τ is the year fraction between the two dates. Forward rates are implied by the curve, not quoted in the market.

Forward rates represent the market's implied interest rate for a future period. BlueGamma derives forward rates directly from our constructed curves.

***

## What Is a Forward Rate?

A forward rate is the interest rate implied by the curve for a period starting in the future.

**Example:** The "3M SOFR rate, 6 months forward" is the market-implied 3-month SOFR rate starting 6 months from today.

```
Today          6M Forward        9M (End)
  │               │                 │
  ▼               ▼                 ▼
  ├───────────────┼─────────────────┤
       6 Months        3 Months
       (waiting)      (rate period)
```

***

## The Formula

### BlueGamma's forward rate

BlueGamma reads the discount factors at the start and end dates off the bootstrapped curve and returns the simple forward rate between them, on the index's day count:

$$
f\_{t,T} = \frac{1}{\tau} \left( \frac{DF\_t}{DF\_T} - 1 \right)
$$

Where:

* **DFₜ, DF\_T** = Discount factors at the start and end dates
* **τ** = Year fraction from t to T on the index's day count (days/360 for SOFR and EURIBOR, days/365 for SONIA)

The rate is applied once over the period, as rate × τ. For overnight indices, daily compounding within the period is already embedded, so it should not be compounded again.

For a period that has already started, published fixings are used for the past part: for overnight indices they are compounded up to today and combined with the curve for the rest of the period; for term indices the rate is the fixing set for that period.

### The no-arbitrage relationship

In annually compounded zero rates, the same relationship reads:

$$
(1 + r\_{0,T})^T = (1 + r\_{0,t})^t \times (1 + f\_{t,T})^{(T-t)}
$$

Solving for the forward rate:

$$
f\_{t,T} = \left( \frac{(1 + r\_{0,T})^T}{(1 + r\_{0,t})^t} \right)^{\frac{1}{T-t}} - 1
$$

Where:

* **r₀,ₜ** = Zero rate from today to time t
* **r₀,T** = Zero rate from today to time T
* **fₜ,T** = Forward rate from time t to T

***

## Example Calculation

**Given:** illustrative zero rates (annually compounded)

| Maturity | Zero Rate |
| -------- | --------- |
| 6M       | 4.35%     |
| 9M       | 4.28%     |

**Calculate:** 3-month forward rate, 6 months forward

$$
f\_{6M,9M} = \left( \frac{(1 + 0.0428)^{0.75}}{(1 + 0.0435)^{0.5}} \right)^{\frac{1}{0.25}} - 1
$$

$$
f\_{6M,9M} = \left( \frac{1.03193}{1.02152} \right)^{4} - 1 = 4.14%
$$

The market implies a 3-month rate of **4.14%** (annually compounded) starting in 6 months.

***

## Using Forward Rates in BlueGamma

### API

```bash
curl "https://api.bluegamma.io/v1/forward_rate?index=SOFR&start_date=2027-04-13&end_date=2027-07-13" \
  -H "x-api-key: your_api_key"
```

**Example output (13 Oct 2026):**

```json
{
  "index": "SOFR",
  "start_date": "2027-04-13",
  "end_date": "2027-07-13",
  "valuation_time": "2026-10-13T08:36:00",
  "forward_rate": 4.5583,
  "timestamp": "2026-10-13T08:35:48"
}
```

From the same curve, `/discount_factors` gives 0.979254 on 2027-04-13 and 0.968100 on 2027-07-13. The period is 91 days, so τ = 91/360 and (0.979254 / 0.968100 − 1) / (91/360) = 4.558%, matching the forward rate above.

### Excel Add-in

```
=BlueGamma.FORWARD_RATE("SOFR", "2027-04-13", "2027-07-13")
```

***

## Key Points

* Forward rates are **implied by the curve**, not directly observable in the market
* They represent the **no-arbitrage** rate — the rate that prevents risk-free profit
* Forward rates can be higher or lower than spot rates depending on curve shape
* **Upward-sloping curve** → Forward rates higher than spot
* **Inverted curve** → Forward rates lower than spot

***

## Related Documentation

* [Interest Rate Curves](https://www.bluegamma.io/documentation/methodology/how-to-bootstrap-the-yield-curve.md) — How curves are constructed
* [Zero Rates](https://www.bluegamma.io/documentation/methodology/zero-rates.md) — The foundation for forward rate calculations
* [Discount Factors](https://www.bluegamma.io/documentation/methodology/discount-factors.md) — How discount factors are calculated
* [How to Pull a Forward Curve into Excel](https://www.bluegamma.io/documentation/integrations/excel-add-in/how-to-guides/how-to-pull-a-forward-curve-directly-into-excel.md) — Excel Add-in guide
* [API Reference](https://www.bluegamma.io/documentation/integrations/api/api-reference.md) — Complete API documentation
* [Available Indices](https://www.bluegamma.io/documentation/data-coverage/whats-available/available-indices.md) — Full list of supported indices


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.bluegamma.io/documentation/methodology/forward-rates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
