> For the complete documentation index, see [llms.txt](https://developer.aiodds.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.aiodds.com/help-center/other/margin-calculation.md).

# Margin Calculation

## Calculation Steps

### Step1  Calculate the Total Implied Probability <a href="#h2-0" id="h2-0"></a>

First, convert the odds for all possible outcomes of a single betting market into probabilities and sum them up.

Assuming a market has $n$ possible outcomes (e.g., the 1X2 market has 3 outcomes, Under/Over has 2 outcomes), with corresponding odds of $O\_1, O\_2, ..., O\_n$.

The formula for the Total Implied Probability is:

<figure><img src="/files/UJjoMXLvfnvBbGJB1Ffp" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Note: Because the bookmaker needs to take a margin (proﬁt), this total sum T will always be greater than 1 (i.e., > 100%).
{% endhint %}

### Step2  Calculate the Payout Ratio <a href="#h2-1" id="h2-1"></a>

The payout ratio is simply the reciprocal of the total implied probability.

The formula for the Payout Ratio is:

<figure><img src="/files/I0Q2bQDM4zQuVDE8w1Uj" alt=""><figcaption></figcaption></figure>

## Classic Application Example

### Football 1X2 (Match Winner)

Assume the odds for a speciﬁc match are: Home 2.10 | Draw 3.40 | Away 3.50

#### Step1  Calculate and sum the implied probabilities

Home Implied Probability = 1 / 2.10 ≈ 0.4762

Draw Implied Probability = 1 / 3.40 ≈ 0.2941

Away Implied Probability = 1 / 3.50 ≈ 0.2857

Total Implied Probability T = 0.4762 + 0.2941 + 0.2857 = 1.0560

#### Step2  Calculate the Payout Ratio

Payout Ratio $R = (1 / 1.0560) \* 100% ≈ 94.70%

Derivative Metric: Bookmaker Margin (Overround)

The bookmaker margin is simply 1 minus the payout ratio: **Margin = 100% - 94.70% = 5.30%**


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.aiodds.com/help-center/other/margin-calculation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
