How to Calculate Cost Per Lead: 3 Formulas for Sellers
How to calculate cost per lead three ways: blended CPL, CPL by source, and cost per sold lead, with a worked example and the margin math for lead sellers.

Rafael Hernandez
Founder & CEO
Ex-Microsoft SWE · $10M+ PPL ad spend


I hope you enjoy reading this blog post. If you want to try Lead Distro AI for free, click here.
Author: Rafael Hernandez | Founder & CEO of Lead Distro AI
To calculate cost per lead, divide the total you spent to get leads by the number of leads you received. A lead seller needs two more versions: cost per lead by source, and cost per sold lead, which divides spend by the leads a buyer accepted and kept.
In short: the cost per lead formula is spend divided by leads. If you sell leads or calls, run it three times: blended across everything, per source, and per sold lead. The third number decides whether you make money.
Most guides stop at the first formula. HubSpot's cost per lead guide gives it as the cost of lead generation divided by the total number of leads, and that is a fine start for a company that closes its own leads. An agency that buys traffic and sells each lead to a buyer lives on the spread, and a cheap lead that gets returned costs more than an expensive lead that sticks. This guide shows each formula with round numbers, then turns cost into margin. For the full dashboard around these numbers, see lead generation KPIs.
Key Takeaways
- Blended cost per lead is total spend divided by total leads. It is the starting number, and it hides your worst source.
- Cost per lead by source shows where the money leaks. Calculate it per campaign and per creative, not only per channel.
- Cost per sold lead divides spend by leads a buyer accepted and kept. Returned and unsold leads still cost you ad spend.
- Margin per lead is the buyer's price minus cost per sold lead. That number, not CPL, decides which source gets more budget.
- A good cost per lead is one your buyers' prices cover with margin to spare. Benchmarks vary too much by vertical to copy.
Formula 1: Blended Cost Per Lead
The basic CPL formula is one line:
Blended CPL = Total ad spend ÷ Total leads received
Say you spend $5,400 across all campaigns in a month and receive 200 leads. Your blended CPL is $5,400 ÷ 200 = $27. These are round numbers for arithmetic, not benchmarks.
Two habits keep how to calculate cost per lead honest. Pull spend from the ad account for the same date range as the leads, so a late spend spike is not charged to the wrong day. And count every lead you paid for, including duplicates and junk, because you paid for those clicks too. If you add publisher or vendor fees, include them in spend.
The cost per lead definition is simple: what you paid to produce one lead. It says nothing about whether that lead was worth buying, which is what the next two formulas fix.
Formula 2: Cost Per Lead by Source and Campaign
Blended CPL is an average, and averages hide losers. The fix is the same formula run on each source:
CPL by source = Spend on that source ÷ Leads from that source
Take two sources from that $5,400. Facebook spent $3,000 and produced 100 leads, so its CPL is $30. Google spent $2,400 and produced 100 leads, so its CPL is $24. The blended $27 sits between them and tells you nothing about either.

Go one level deeper than channel. Split by campaign, ad set, and creative, because one ad that costs twice as much as its siblings can sit inside a healthy-looking campaign average. If you need to trace a lead back to its click first, our guide to ad attribution for lead generation covers the tagging that makes per-source math possible.
On this view Google looks better, $24 against $30. Do not move budget yet.
Formula 3: Cost Per Sold Lead
A seller is not paid for leads received. A seller is paid for leads a buyer accepts and does not send back. So the number that matters divides spend by that count:
Cost per sold lead = Spend ÷ (Leads sold − Leads returned)
Continue the example. Of Facebook's 100 leads, 85 sold and 5 came back, leaving 80 kept. Of Google's 100 leads, 60 sold and 12 came back, leaving 48 kept.
- Facebook: $3,000 ÷ 80 = $37.50 per sold lead
- Google: $2,400 ÷ 48 = $50.00 per sold lead

The order flipped. The source with the cheaper lead is the more expensive one to sell, because fewer of its leads survive the buyer's filters and return window. Across both sources, spend of $5,400 over 128 kept leads is $42.19 per sold lead, against the $27 blended CPL. That gap is the cost of unsold and returned leads. Our guide to lead quality covers how to find out why a source returns more.
From Cost to Margin Per Lead
Cost only matters next to price. Margin per sold lead is what the buyer paid minus your cost per sold lead:
Margin per sold lead = Buyer price − Cost per sold lead
Suppose the buyer pays $60 per accepted lead. Here is the full example in one table.
| Both | |||
|---|---|---|---|
| Spend | $3,000 | $2,400 | $5,400 |
| Leads received | 100 | 100 | 200 |
| Blended CPL | $30.00 | $24.00 | $27.00 |
| Leads kept after returns | 80 | 48 | 128 |
| Cost per sold lead | $37.50 | $50.00 | $42.19 |
| Revenue at $60 | $4,800 | $2,880 | $7,680 |
| Profit | $1,800 | $480 | $2,280 |
| Margin per sold lead | $22.50 | $10.00 | $17.81 |
Facebook earned $1,800 and Google earned $480 on the same $60 price. Google's lower CPL was a trap. Unit prices come from your own deals; our guide on how to price leads shows how to set them from cost per sold lead plus a target margin.
Which Formula Answers Which Question
| Formula | Calculation | Question it answers | Weakness |
|---|---|---|---|
| Blended CPL | Total spend ÷ total leads | Is our overall media cost moving? | Hides the best and worst sources |
| CPL by source | Source spend ÷ source leads | Which source or creative is cheapest to buy? | Ignores whether leads sell |
| Cost per sold lead | Spend ÷ (sold − returned) | What does a lead we actually get paid for cost? | Needs buyer outcome data |
| Margin per sold lead | Buyer price − cost per sold lead | Which source do we scale? | Needs price and cost per lead |
Cost per acquisition (CPA) divides spend by customers rather than leads. For a seller the customer is a buyer's closed deal, which you rarely see, so cost per sold lead is the nearest figure you control.
What Is a Good Cost Per Lead?
A good cost per lead is one your buyer's price covers with a margin you can live on. A number from a report cannot tell you that, because benchmarks follow how each study defines a lead and a vertical.
Two published figures show the spread. LocaliQ's search advertising benchmarks put the average search cost per lead at $66.69 across industries and $131.63 for attorneys and legal services. First Page Sage's average cost per lead by industry report lists legal services at a blended $682, where blended CPL is weighted by the share of leads each channel produced. Both describe legal leads, and they sit about five times apart. Different definitions explain the gap, which is the reason to treat any average cost per lead as context.
Work from your own data. Calculate cost per sold lead by source, compare each to the buyer's price, and keep a source only while margin holds.
Calculators and Tracking
You can run these formulas in a spreadsheet, and many sellers start there. The weak point is the join: ad spend lives in the ad account, buyer outcomes live in your lead system, and returns arrive later. Each month someone has to line them up by hand.
A cost per lead calculator handles one scenario. The lead pricing calculator lets you test prices against your costs. For the ongoing numbers, cost per lead tracking in Lead Distro AI syncs ad spend so you can see true cost per lead and margin by campaign. In supplier settings you can set cost as a fixed amount per lead or as a share of revenue. Lead Distro AI uses those costs to calculate your true blended cost per lead and profit margins. You can see how it looks in the product tour. For the reporting layer around it, read our lead reporting software for agencies guide, and for ROAS views see ROI and ROAS tracking.
FAQ
How do you calculate cost per lead?
Divide total spend by total leads received. Spend of $1,000 that produces 50 leads gives a cost per lead of $20. For a seller, repeat the math per source and per campaign, then calculate cost per sold lead by dividing spend by the leads a buyer accepted and kept. The first number measures media cost. The last one measures what you paid for leads that actually earned revenue, so it is the one to compare against the buyer's price.
What is the cost per lead formula?
The cost per lead formula is total spend divided by number of leads. Use the same date range for both numbers, and include every cost that went into producing the leads, such as vendor or publisher fees. Sellers should add cost per sold lead: spend divided by leads sold minus leads returned. That figure shows the true cost of the leads that earn revenue, and it is usually higher than the blended number.
What is a good cost per lead?
A good cost per lead is one the buyer's price covers with room for margin. Published benchmarks differ widely by vertical and by how each study defines a lead. LocaliQ and First Page Sage report very different legal figures, for example. Calculate your own cost per sold lead by source and compare it with what buyers pay. That tells you more than any industry average, because it reflects your traffic, your buyers, and your return terms.
What is the difference between CPL and CPA?
Cost per lead divides spend by leads. Cost per acquisition divides spend by customers or completed sales. A lead seller usually never sees the buyer's closed deals, so CPA is mostly the buyer's number. Cost per sold lead is the closest figure a seller controls: spend divided by the leads a buyer accepted and kept. Use it to judge sources, and let the buyer's own CPA set the ceiling on what they can pay you per lead.
Why is my blended CPL low but my profit poor?
Blended CPL counts every lead you received, including ones that never sold or were returned. A cheap source can have a high return rate, so its cost per sold lead ends up higher than a pricier source. Break the numbers out by source, add returns, and compare margin per sold lead. That usually exposes the source that looks good on cost and loses money on outcome, as Google did in the example above.
Can a calculator replace tracking?
A calculator answers one scenario. Tracking keeps the answer current as spend, leads, buyer acceptance, and returns change every day. If you only calculate once a month, a bad source can run for weeks before you see it. Use a calculator to test prices and what-if cases, then track cost per lead and margin per source continuously so that a rising return rate shows up while you can still cut the budget.
Conclusion
To calculate cost per lead, start with spend divided by leads, then do the two steps most guides skip: split it by source and divide by sold leads. In the example above, the cheaper source by CPL earned $480 while the dearer one earned $1,800. If you want cost and margin joined without spreadsheets, start a 7-day free trial of Lead Distro AI.
Want to see cost per lead and margin by source on your own data? Start your 7-day free trial and sync your ad spend.
About the Author

Founder & CEO of Lead Distro AI & Great Marketing AI
UC Berkeley graduate and former software engineer at Microsoft. Rafael built Lead Distro AI after managing over $10M in ad spend for performance marketing agencies (pay-per-lead and pay-per-call), including running campaigns for Neil Patel. He combines deep software engineering expertise with hands-on performance marketing experience to build tools that help these agencies scale profitably.
About Lead Distro AI
Scale Your Lead & Call Agency With the Best AI-Powered Platform Built for Volume
Capture, route, and sell leads, calls, and appointments from one platform, with funnels, call tracking, ping-post, and billing built in. Set it all up in minutes by chatting with AI.
Funnels
Quiz, form, appointment, VSL, and webinar templates
Call Tracking
Tracking numbers, call recordings, and per-call billing
4 Distribution Methods
Priority/Waterfall, Round Robin, Weighted, Ping-Post
Ping-Post and Live Bidding
Sell each lead and call to the highest bid
Real-Time P&L
Revenue, cost, and profit per campaign
Partner Portal
Your Destinations see their own leads and results


