Tracking your margins with Erplain
Modified on: 17 Nov 2026
Erplain allows you to track the profitability of your sales in real time, from product pages to sales reports. You can view your profit, markup, or margin at every stage of your sales cycle: when setting product prices, while creating sales documents (quotes, sales orders, invoices), and in your reports.
Understanding profitability metrics
Before using profitability tracking tools in Erplain, it is important to understand the three key metrics available to you.
Profit
Profit represents the difference between the selling price (excl. tax) and the purchase cost of a product. It is the most direct indicator of your profitability.
Example:
- Purchase price: 30 €
- Selling price (excl. tax): 50 €
- Profit = 50 € − 30 € = 20 €
Markup
Markup expresses profit as a percentage of cost. It measures how much you make compared to what the product costs you.
Example:
- Purchase price: 30 €
- Selling price (excl. tax): 50 €
- Markup = ((50 − 30) / 30) × 100 = 66.67%
Note: Markup can exceed 100% if your selling price is more than twice your purchase price.
Margin
Margin expresses profit as a percentage of the selling price (excl. tax). It shows what share of your revenue is actual profit.
Example:
- Purchase price: 30 €
- Selling price (excl. tax): 50 €
- Margin = ((50 − 30) / 50) × 100 = 40%
Note: Margin is always below 100%. A 40% margin means that for every 1 € invoiced, 0.40 € is profit.
What is the difference between Markup and Margin?
Both metrics use the exact same numerator (profit), but calculate it against a different base:
| Metric | Formula | Calculation base | Example (cost 30 €, sale 50 €) |
|---|---|---|---|
| Profit | Selling price (excl. tax) − Cost | — | 20 € |
| Markup | Profit / Cost × 100 | Purchase price | 66.67% |
| Margin | Profit / Selling price (excl. tax) × 100 | Selling price | 40% |
Profitability on product pages
When editing a product, Erplain provides a margin simulator in the pricing section. This interactive tool allows you to:
- View in real time the markup (or margin) and profit for each selling price
- Simulate a selling price by entering a target rate: enter the desired rate and Erplain automatically calculates the corresponding selling price
- Simulate a margin by changing the selling price: adjust the price and the rate recalculates instantly

The simulator displays color-coded visual indicators to help you quickly identify profitability:
- Green: positive margin (selling above cost)
- Red: negative margin (selling below cost)
To use the margin simulator:
- Open a product page via the "Products" menu
- Click on the "Prices" section
- The margin simulator appears automatically next to the selling price
- Adjust the selling price to see the rate and profit recalculate, or enter a target rate to get the corresponding selling price

Note: The simulator works with both tax-exclusive and tax-inclusive pricing based on your company tax settings. Profitability calculations are always based on tax-exclusive amounts.
Price tiers and profitability
If you use multiple price tiers (retail price, wholesale price, distributor price...), the margin simulator displays the rate for each price tier. This allows you to verify that your profitability remains satisfactory across all your pricing levels, including discounted ones.
To learn more, please refer to the article on Price tiers.
Profitability in sales documents
Profitability data is available when creating and editing your quotes, sales orders, and invoices.
Profitability columns on product lines
You can display profitability columns directly on product lines in your sales documents.

Real-time calculations
Profitability calculations update in real time as you modify a sales document:
- Edit line selling price → the rate and profit recalculate automatically
- Apply a discount → the rate and profit reflect the updated price after discount
- Change quantity → the total line profit is updated
This allows you to negotiate with full visibility of your margins. If a customer requests a special price, you immediately see the impact on your profitability.
You can also edit a product line to recalculate the price based on a markup, margin, or coefficient. Simply click the pencil icon at the top of each item card.
Rate calculation in sales documents:
For each product line, Erplain calculates the rate at the total line level:
Example – Sale of 2 units of a product:
- Unit selling price excl. tax: 50 € → Total excl. tax = 100 € (50 € × 2)
- Unit purchase cost: 30 € → Total cost (COGS) = 60 € (30 € × 2)
- Profit = 100 € − 60 € = 40 €
Margin calculation:
- Margin = ((100 − 60) / 100) × 100
- Margin = (40 / 100) × 100 = 40%
Note: If a product has no purchase cost entered, the rate cannot be calculated and will display as «—».
Profitability in sales reports
The margin on products sold can be reviewed in sales reports under "Reports" > "Sales". In sales reports, you can display the following profitability columns:
- Total cost: total cost of goods sold (COGS)
- Total profit: total profit generated
- Markup / Margin: weighted average rate based on your account preferences
To display these columns, click the column picker icon and select the desired profitability fields.

Bulk price updates and margins
When you update prices in bulk (from "Products" > "Price update"), the table displays margin columns to help guide your decisions.
You can also set a target price by margin or markup rate: enter the desired rate and Erplain automatically calculates the new selling price. This is particularly useful when standardizing your pricing policy across an entire product line.
To learn more, please refer to the article on Price update.
Profitability in exports
When exporting your data (products, document line items, sales reports), the following profitability fields are available:
| Field | Description |
|---|---|
| Purchase price | Unit purchase cost of the product |
| Markup | Markup rate as a percentage |
| Margin | Margin rate as a percentage |
| Profit | Unit profit |
| Total profit | Total line profit |
| Total cost | Total line cost |
You can export this data in .xlsx and .csv formats to run additional analyses in a spreadsheet or share it with your accountant.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article