> For the complete documentation index, see [llms.txt](https://docs.flowretail.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowretail.com/docs/day-to-day-operations/prices/calculation-factor.md). Agents can also search and read this documentation through its [MCP server](https://docs.flowretail.com/docs/~gitbook/mcp).

# Calculation factor

Estimate a product's cost price from its sales price when no purchase price is known.

**The calculation factor tells Flow Retail what a product costs when no better cost is known: the sales price divided by the factor.**

It does not suggest or change a sales price.

## What is the calculation factor

A divisor on the product that turns the sales price, including VAT, into an estimated cost price. Flow Retail needs a cost price on every sold line to work out gross profit, and uses the factor only as a fallback:

1. **Average cost** from the warehouse, when a Stock Product has stock there.
2. Otherwise the store's **Purchase Price List**, then the product's **Agreed Purchase Price**.
3. Otherwise **sales price ÷ calculation factor**.
4. If the factor is empty or 0, the sales price minus VAT — which gives zero margin.

Stock lists and stocktaking use a shorter fallback for products with no average cost: agreed purchase price, then recommended retail price ÷ factor, then the recommended retail price minus VAT.

### Example

#### Let’s say:

* Sales price = 250, including 25% VAT
* Calculation factor = 2.5

#### Flow Retail will calculate:

Estimated cost price = 250 ÷ 2.5 = 100

The price excluding VAT is 200, so gross profit is 100 — a gross margin of **50%**.

To pick a factor for a target margin: **factor = (1 + VAT rate) ÷ (1 − margin)**. With 25% VAT, a 50% margin gives 1.25 ÷ 0.5 = 2.5.

### Summary

* **Sales price ÷ Calculation factor = Estimated cost price**
* Used only when there is no average cost or purchase price to use
* Particularly useful for Not Stock Controlled products, which never get an average cost
* Not used for package products, which take their cost from their component lines

## Setting the calculation factor

Set it on the product in **Flow Admin → Products → Products**, under **General → Pricing**. When you create a product in **Advanced mode**, **Calculation Factor** is required (except for Package Product, Dynamic) and must be greater than 0. The product import also accepts a calculation factor column.

A typical setup:

1. **Product Type:** Not Stock Controlled

<figure><img src="https://593715853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0GCVniU8V4PZKEK4axWz%2Fuploads%2F6SrjmpZINS012QurfbIf%2FSCR-20250213-mzmt.png?alt=media&#x26;token=c5041a9b-4d14-4017-af30-58eda9e39402" alt=""><figcaption></figcaption></figure>

2. **Calculation Factor:** The factor you want to apply, for example 1.25 to set the profit margin to 0, if there is a 25% VAT on the product.

<figure><img src="https://593715853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0GCVniU8V4PZKEK4axWz%2Fuploads%2FMhi0KkuCvTOZSvaQKHAo%2FSCR-20250330-ilru.png?alt=media&#x26;token=8b1632c6-7037-45d4-89f5-ef43fb67f591" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
VAT must be included in the calculation. For example, if the item has 25% VAT and the factor is set to **1.25**, the profit margin will be 0.
{% endhint %}

*Last updated 24.09.2026*


---

# 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://docs.flowretail.com/docs/day-to-day-operations/prices/calculation-factor.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.
