How to Calculate Sales Commission in Zoho Books Using Gross Profit (With Example)

Introduction

Giving 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 Calculation

Gross 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 Sold

Once 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 Rate

For 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 Profit

Sales commission based on gross profit is calculated using this formula:

Commission = (Sales Revenue – Cost of Goods Sold) × Commission Rate

Example:

  • Revenue = $10,000
  • Cost of Goods Sold = $7,000
  • Gross Profit = $3,000
  • Commission Rate = 10%
  • Commission = $300

Why 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: $40

By 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 commissions

Gross Profit vs Revenue-Based Commission: Key Difference

TypeBased OnAccuracyBest For
Revenue-basedTotal sales valueLowerHigh-volume sales teams
Gross profit-basedProfit after costsHigherMargin-focused businesses

What 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 Books

Consider 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 rate
John Doe5% of Gross Profit
Jane Smith3% of Gross Profit
Bob Johnson4% of Gross Profit

Sales Transactions:

Now consider the following sales transactions

DateInvoice No.SalesPersonTotal Invoice Payment
2024-02-09INV-1001John Doe$12,000
2024-02-09INV-1002Jane Smith$15,000
2024-02-09INV-1003Bob Johnson$20,000

Sales Commission Calculation Example:

Invoice No.Total Invoice PaymentCOGSGross profitCommission Earned
INV-1001$12,000$8,000$4000$200
INV-1002$15,000$10,000$5000$150
INV-1003$20,000$14,000$6000$240

Ensuring Fair Payouts

This 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 Books

Setting Up Custom Fields

To 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

  1. Log in to Zoho Books and navigate to settings
    Zoho Books dashboard with the settings icon highlighted in the top-right corner.
  2. Click on Sales and select Invoices.
    Zoho Books settings page with 'Sales' and 'Invoices' options highlighted
  3. Go to the Custom Fields section and click on the New Custom Field.
    Zoho Books Invoices module with 'Field Customization' tab and 'New Custom Field' button highlighted.
  4. Enter the Field Name, and Set the Field name as Commission.
  5. For data types, choose a currency, decimal, or amount to store the commission values.
  6. Click Save to finalize the setup.
    Zoho Books 'Edit Custom Field - Invoices' screen with 'Label Name' and 'Data Type' fields highlighted, indicating the creation of a custom field.

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 Details

Once 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

  1. Navigate to Reports in Zoho Books.
    Zoho Books dashboard highlighting the 'Reports' menu in the left sidebar, guiding users to access reporting features
  2. Select Custom Reports from the Report lists and Create a Custom Report.
    Zoho Books Reports Center highlighting 'Custom Reports' in the left sidebar and 'Create Custom Report' button to generate a new report.
  3. Now select the report you want to customize from the list of Reports; we have to choose the invoice Details.
    Zoho Books 'New Custom Report' popup window prompting users to select a report to customize, with options to proceed or cancel.
  4. Now complete the necessary steps i,e (General, Show/Hide Columns, Report Layout, Report Preferences).
    Zoho Books interface displaying the 'New Custom Report' dialog box, prompting the user to select a report to customize
  5. You can also add the Advanced Filters if needed.
    Zoho Books interface displaying the 'Advanced Filters' section in the custom report creation process, with a filter applied for Salesperson selection and options to add more filters
  6. Click save as Custom Report and name it “Commission Report by Gross Profit”.
    Zoho Books interface showing the 'Edit Custom Report' section under 'Report Preferences,' where a custom report is named 'Commission Report by Gross Profit,' with options to add a report description and configure sharing permissions

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 Books

This process triggers commission calculations when the system marks an invoice as paid.

Deluge Script Logic for Zoho Books Commission Calculation

The Script Follows a structured algorithm to retrieve invoice details, calculate Gross Profit, and apply the correct commission rate.

Algorithm for Commission Calculation:

  1. Retrieve Invoice Details
    • Fetch the invoice ID and check its payment status.
    • Ensure that the invoice is marked as “Paid” before proceeding.
  2. Calculate Gross Profit
    • Fetch the total invoice amount.
    • Subtract COGS from the total invoice amount to get Gross Profit.
  3. Determine Salesperson’s Commission Rate
    • Identify the salesperson assigned to the invoice.
    • Apply the predefined commission rate.
  4. Compute Commission Amount
    • Multiply the Gross profit by the commission percentage to determine the final commission.
  5. Update Custom Field in Invoice Module
    • Store the calculated commission in the invoice’s custom “Commission” field.
  6. 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.

Zoho Books pricing plan comparison table highlighting customization and automation features. The 'Custom functions' feature is marked unavailable in Free, Standard, and Professional plans, but available in Premium, Elite, and Ultimate plans

How to Create Workflow Rules for Commission Automation

Once 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:

  1. Navigate to Zoho Books Settings → Click on Automation → Select Workflow Rules.
    Zoho Books settings page showing the 'Automation' section with 'Workflow Rules' highlighted in red
  2. Click “Create Rule” and choose the Invoice module.
    Zoho Books Workflow Rules page with a highlighted 'New Workflow Rule' button in the top right corner
  3. Define the Trigger Condition
    • When Invoice Status = “Paid”
    Zoho Books Workflow Rule Execution Condition settings with 'Event Based' workflow type and trigger set for when an invoice is created or edited
  4. Select the Action:
    • Choose Custom Function and insert the Deluge Script
    Zoho Books interface showing the 'Associate Immediate Actions' screen with a custom function named 'updates_commission' linked to invoices.
  5. Save and Activate the workflow rule.
    Zoho Books workflow rule setup screen showing an event-based workflow that triggers a custom function 'updates_commission' whenever an invoice is created or edited

Note: This workflow will run automatically for every paid invoice and store the commissions.

Common Sales Commission Calculation Challenges

Many businesses face issues like:

  • Incorrect commission payouts
  • Lack of visibility into profit margins
  • Manual calculations in spreadsheets
  • Limited automation in accounting tools

This is where customizing Zoho Books or integrating with other tools can help automate and standardize the process.

Final Thoughts on Zoho Books Commission Calculation

By 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 Calculation

How 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.


Article by

Chintan Prajapati

Chintan Prajapati, a seasoned computer engineer with over 20 years in the software industry, is the Founder and CEO of Satva Solutions. His expertise lies in Accounting & ERP Integrations, RPA, and developing technology solutions around leading ERP and accounting software, focusing on using Responsible AI and ML in fintech solutions. Chintan holds a BE in Computer Engineering and is a Microsoft Certified Professional, Microsoft Certified Technology Specialist, Certified Azure Solution Developer, Certified Intuit Developer, Certified QuickBooks ProAdvisor and Xero Developer.Throughout his career, Chintan has significantly impacted the accounting industry by consulting and delivering integrations and automation solutions that have saved thousands of man-hours. He aims to provide readers with insightful, practical advice on leveraging technology for business efficiency.Outside of his professional work, Chintan enjoys trekking and bird-watching. Guided by the philosophy, "Deliver the highest value to clients". Chintan continues to drive innovation and excellence in digital transformation strategies from his base in Ahmedabad, India.