How to Calculate Sales Commission in Zoho Books Using Gross Profit (With Example) Chintan Prajapati March 12, 2026 10 min read IntroductionGiving a commission to salespeople is crucial to business operations, ensuring fair and accurate commission payouts to salespersons while reducing manual efforts.This documentation explains how to track commissions using Zoho Books while providing fair compensation based on Gross Profit.Calculating sales commission accurately is critical for maintaining profitability and motivating your sales team.Many businesses make the mistake of calculating commissions on total revenue, which can lead to overpaying and reduced margins.In this guide, you’ll learn how to calculate sales commission based on gross profit and how to implement it in Zoho Books.We’ll also walk through a practical example so you can apply this method to your business.Gross Profit Formula for Commission CalculationGross profit is calculated by subtracting the cost of goods sold or direct service cost from total sales revenue.Gross Profit formula:Gross Profit = Sales Revenue – Cost of Goods SoldOnce gross profit is calculated, sales commission can be calculated by multiplying gross profit by the commission rate.Sales Commission formula:Sales Commission = Gross Profit × Commission RateFor example, if the sales revenue is $10,000 and the cost of goods sold is $7,000, the gross profit is $3,000. If the commission rate is 10%, the sales commission will be $300.This method gives a more accurate commission payout because it connects the salesperson’s earnings with the actual profit generated from the sale.Sales Commission Calculation Formula Based on Gross ProfitSales commission based on gross profit is calculated using this formula:Commission = (Sales Revenue – Cost of Goods Sold) × Commission RateExample: Revenue = $10,000 Cost of Goods Sold = $7,000 Gross Profit = $3,000 Commission Rate = 10% Commission = $300Why Use Gross Profit Instead of Revenue for Sales Commission?Some companies calculate commissions based on the total revenue, which does not always reflect business profitability.A more accurate method is to base commission on Gross profit rather than total revenue. This ensures that sales reps are incentivized to sell higher-margin products rather than just focusing on increasing sales volume.It also aligns sales incentives with overall business profitability rather than just revenue generation.Gross profit formula:Gross Profit = Revenue – Cost of Goods Sold (COGS)Example: Revenue: $100 COGS: $60 Gross Profit: $40By using Gross Profit as the basis for commissions, businesses can ensure that payouts are aligned with profit margins rather than just total sales figures, creating a balanced commission structure.Before automating commission calculations based on Gross profit, it’s essential to understand what sales commissions are and how they impact business profitability. Explore the definition and uses of sales commissionsGross Profit vs Revenue-Based Commission: Key DifferenceTypeBased OnAccuracyBest ForRevenue-basedTotal sales valueLowerHigh-volume sales teamsGross profit-basedProfit after costsHigherMargin-focused businessesWhat Is a Good Sales Commission Percentage?A good sales commission percentage depends on the business model, product margin, sales cycle, deal size, and whether the commission is paid on revenue or gross profit. Many businesses use a lower commission percentage when commission is calculated on total revenue and a higher percentage when commission is calculated on gross profit.For example, if a salesperson earns commission on revenue, the rate may need to be conservative because it does not consider the cost of delivery. But if commission is calculated on gross profit, the payout is directly connected to the profit left after costs.A practical way to decide the commission percentage is to first calculate gross profit, review your target margin, and then set a commission rate that motivates the sales team without reducing business profitability.In Zoho Books, this commission percentage can be stored against a salesperson, item category, customer type, or invoice condition, depending on how your commission structure works.Gross Profit Commission Calculation Example in Zoho BooksConsider a business that sells multiple products with varying profit margins.Instead of calculating sales commissions based on total revenue, commissions should be determined based on Gross Profit to ensure fair payouts.Let’s assume three salespersons John Doe, Jane Smith, and Bob Johnson each have different commission rates based on their experience and performance:Salesperson Commission Structure:SalespersonGross profit-based commission rateJohn Doe5% of Gross ProfitJane Smith3% of Gross ProfitBob Johnson4% of Gross ProfitSales Transactions:Now consider the following sales transactionsDateInvoice No.SalesPersonTotal Invoice Payment2024-02-09INV-1001John Doe$12,0002024-02-09INV-1002Jane Smith$15,0002024-02-09INV-1003Bob Johnson$20,000Sales Commission Calculation Example:Invoice No.Total Invoice PaymentCOGSGross profitCommission EarnedINV-1001$12,000$8,000$4000$200INV-1002$15,000$10,000$5000$150INV-1003$20,000$14,000$6000$240Ensuring Fair PayoutsThis commission is calculated only when the invoice is paid, ensuring that payouts are linked to received revenue.Instead of a flat percentage of total sales, this method aligns earnings with actual profit margins. If you’re managing similar calculations across multiple systems, integrating your accounting tools can improve accuracy and reporting.How to Set Up Gross Profit Commission Calculation in Zoho BooksSetting Up Custom FieldsTo ensure that sales commissions are accurately calculated based on the Gross Profit, we need to set up custom fields in Zoho Books.Adding a Custom Field for commission in the Invoice Module Since commissions are now calculated based on the Gross profit and triggered when an invoice is paid, we need to create a custom field in the Invoice module instead of the Payments Received Module.This will allow the commission to be tracked at the invoice level and automatically updated when payments are received.Steps to Add a Custom Field for Commission in Invoices Log in to Zoho Books and navigate to settings Click on Sales and select Invoices. Go to the Custom Fields section and click on the New Custom Field. Enter the Field Name, and Set the Field name as Commission. For data types, choose a currency, decimal, or amount to store the commission values. Click Save to finalize the setup. Note: This field will automatically store commission values once the workflow and Deluge script are applied, ensuring that commissions are calculated without manual entry.For businesses with complex commission structures, it’s often beneficial to automate commission calculations in Zoho Books using custom workflows and integrations.How to Setting Up a Custom Report Based on the Invoice DetailsOnce the custom field for Commission Amount is added to the invoices, creating a report that consolidates commission data for salespersons and provides insights into earnings based on Gross Profit is essential.Steps to Create a Custom Commission Report Navigate to Reports in Zoho Books. Select Custom Reports from the Report lists and Create a Custom Report. Now select the report you want to customize from the list of Reports; we have to choose the invoice Details. Now complete the necessary steps i,e (General, Show/Hide Columns, Report Layout, Report Preferences). You can also add the Advanced Filters if needed. Click save as Custom Report and name it “Commission Report by Gross Profit”. Note: This Custom Report will provide real-time insights into commission earnings, making it easier to track payouts, review sales performance and align commissions with business profitability.Automating Sales Commission Calculation in Zoho BooksThis process triggers commission calculations when the system marks an invoice as paid.Deluge Script Logic for Zoho Books Commission CalculationThe Script Follows a structured algorithm to retrieve invoice details, calculate Gross Profit, and apply the correct commission rate.Algorithm for Commission Calculation: Retrieve Invoice Details Fetch the invoice ID and check its payment status. Ensure that the invoice is marked as “Paid” before proceeding. Calculate Gross Profit Fetch the total invoice amount. Subtract COGS from the total invoice amount to get Gross Profit. Determine Salesperson’s Commission Rate Identify the salesperson assigned to the invoice. Apply the predefined commission rate. Compute Commission Amount Multiply the Gross profit by the commission percentage to determine the final commission. Update Custom Field in Invoice Module Store the calculated commission in the invoice’s custom “Commission” field. Handle Errors and Edge Cases If the customer does not pay the invoice, stop the commission calculation. If the system does not find a matching COGS transaction, log an error and prevent incorrect commission updates. Note: This algorithm ensures fair commission distribution based on actual business margins.You can create Workflow Actions and Rules only in Premium Plans and above.How to Create Workflow Rules for Commission AutomationOnce implementing the Deluge script, the system creates a workflow rule to execute the script whenever an invoice is marked as “paid”. This automates the entire process, eliminating manual effort.Steps to create the Workflow Rule: Navigate to Zoho Books Settings → Click on Automation → Select Workflow Rules. Click “Create Rule” and choose the Invoice module. Define the Trigger Condition When Invoice Status = “Paid” Select the Action: Choose Custom Function and insert the Deluge Script Save and Activate the workflow rule. Note: This workflow will run automatically for every paid invoice and store the commissions.Common Sales Commission Calculation ChallengesMany businesses face issues like: Incorrect commission payouts Lack of visibility into profit margins Manual calculations in spreadsheets Limited automation in accounting toolsThis is where customizing Zoho Books or integrating with other tools can help automate and standardize the process.Final Thoughts on Zoho Books Commission CalculationBy implementing this Gross Profit based commission automation in Zoho Books, businesses can: Optimize sales processes. Improve financial accuracy. Ensure fair and performance-driven compensation. Reduce manual errors and administrative workload.This solution provides a scalable, transparent, and automated approach to commission tracking, enabling businesses to focus on growth without the hassle of manual calculations.If you need assistance in setting up custom commission Calculator in Zoho or Zoho Books Integration with any third-party software, Satva Solutions can help.Our experts specialize in accounting software integrations and workflow automation, ensuring a seamless implementation tailored to your business needs. Contact us today to optimize your sales commission process!FAQs on Zoho Books Sales Commission CalculationHow do you calculate sales commission based on gross profit?Sales commission based on gross profit is calculated by subtracting the cost of goods sold from sales revenue and then applying the salesperson’s commission rate to the remaining profit. The formula is: Commission = (Revenue – COGS) × Commission Rate. For example, if revenue is $10,000, COGS is $7,000, and the commission rate is 10%, the commission amount will be $300.Can Zoho Books calculate sales commission automatically?Zoho Books does not have a dedicated built-in sales commission module, but commissions can be calculated automatically using custom fields, workflow rules, custom functions, reports, and Zoho Analytics. This allows businesses to calculate commission based on invoice value, gross profit, payment status, salesperson, or custom commission rules.What is the difference between revenue-based and gross profit-based commission?Revenue-based commission is calculated on the total sales value, while gross profit-based commission is calculated after deducting costs such as COGS or direct service costs. Gross profit-based commission is usually more accurate because it connects the payout with the actual profit generated from the sale instead of only the invoice amount.Why should businesses use gross profit for commission calculation?Businesses should use gross profit for commission calculation because it helps protect margins and prevents overpayment on low-profit deals. When commission is calculated on gross profit, sales teams are encouraged to focus on profitable sales instead of only increasing revenue. This approach is especially useful when product costs, discounts, or delivery costs vary from deal to deal.How do you track commission in Zoho Books?You can track commission in Zoho Books using custom invoice fields, salesperson-wise reports, Zoho Analytics dashboards, workflow automation, or custom integrations. For better accuracy, businesses can track revenue, COGS, gross profit, commission rate, invoice status, and final commission amount in one reporting setup.Can commission structures be customized in Zoho Books?Yes, commission structures can be customized in Zoho Books using workflows, custom functions, custom fields, and integrations. Businesses can create different rules for salesperson-wise commission, product-wise commission, invoice-paid commission, gross profit-based commission, or tiered commission depending on their sales process.What are common mistakes in sales commission calculation?Common mistakes in sales commission calculation include calculating commission only on revenue, ignoring COGS, using incorrect commission rates, paying commission before invoice payment, relying too much on manual spreadsheets, and not auditing commission reports regularly. These mistakes can lead to incorrect payouts and margin loss.Is gross profit-based commission better for small businesses?Yes, gross profit-based commission is often better for small businesses because it helps protect cash flow and profit margins. Small businesses usually have tighter margins, so paying commission on total revenue can create problems when costs are high. A profit-based commission model makes sure payouts are linked to actual profitability.Is Zoho partner commission the same as sales commission in Zoho Books?No. Zoho partner commission usually refers to commission earned by Zoho partners through Zoho’s partner or referral programs. Sales commission in Zoho Books refers to the commission a business calculates for its internal sales team based on invoices, revenue, or gross profit. This blog focuses on calculating and automating internal sales commission in Zoho Books.