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.

Profit = Selling price (excl. tax) − Purchase price

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.

Markup (%) = ((Selling price excl. tax − Purchase price) / Purchase price) × 100

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.

Margin (%) = ((Selling price excl. tax − Purchase price) / Selling price excl. tax) × 100

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:

   
MetricFormulaCalculation baseExample (cost 30 €, sale 50 €)
ProfitSelling price (excl. tax) − Cost—20 €
MarkupProfit / Cost × 100Purchase price66.67%
MarginProfit / Selling price (excl. tax) × 100Selling price40%

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:

  1. Open a product page via the "Products" menu
  2. Click on the "Prices" section
  3. The margin simulator appears automatically next to the selling price
  4. 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:

Margin (%) = ((Total excl. tax − Total purchase cost) / Total excl. tax) × 100

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:

FieldDescription
Purchase priceUnit purchase cost of the product
MarkupMarkup rate as a percentage
MarginMargin rate as a percentage
ProfitUnit profit
Total profitTotal line profit
Total costTotal 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article