# Gross Margin

**Gross margin** is calculated by dividing [gross profit](/roivenue-resources/glossary/marketing-and-financial-glossary/gross-profit.md) by [sales revenue](/roivenue-resources/glossary/marketing-and-financial-glossary/sales-revenue.md). This indicator shows the percentage(margin) of your [sales revenue](/roivenue-resources/glossary/marketing-and-financial-glossary/sales-revenue.md) that is [gross profit](/roivenue-resources/glossary/marketing-and-financial-glossary/gross-profit.md).&#x20;

Gross margin and gross profit are closely related: if you deduct [cost of goods sold](/roivenue-resources/glossary/marketing-and-financial-glossary/cost-of-goods-sold.md) from [sales revenue](/roivenue-resources/glossary/marketing-and-financial-glossary/sales-revenue.md), you have [gross profit](/roivenue-resources/glossary/marketing-and-financial-glossary/gross-profit.md). After that, if you divide [gross profit](/roivenue-resources/glossary/marketing-and-financial-glossary/gross-profit.md) by [sales revenue](/roivenue-resources/glossary/marketing-and-financial-glossary/sales-revenue.md), you have gross margin.

To maximize the insight you receive from this indicator, calculate it individually for each market segment. Use the findings to evaluate your company's market positioning.

### Parameters

**`Calculation:`**` ``grossMargin =` [`grossProfit`](/roivenue-resources/glossary/marketing-and-financial-glossary/gross-margin.md) `/` [`salesRevenue`](/roivenue-resources/glossary/marketing-and-financial-glossary/sales-revenue.md)

**`Example:`**` ``grossMargin = 11 600 / 52 000 ≐ 0,223`

**`Unit:`**` ``Number`


---

# Agent Instructions: 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:

```
GET https://docs.roivenue.com/roivenue-resources/glossary/marketing-and-financial-glossary/gross-margin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
