Summary: To calculate cost per lead, divide your lead generation spend by the number of eligible leads generated during the period. The lowest cost per signup does not guarantee the lowest cost per customer. Track the same cohort through qualification and sale to compare campaigns.
What is cost per lead and what is the formula?
Cost per lead, or CPL, is the amount spent to generate each eligible contact. The formula is lead generation spend ÷ number of eligible leads. For the result to be useful, define which expenses to include, what qualifies as a lead, and which period to analyze.
The numerator can represent ad spend alone or include other generation costs, such as landing page creation, tools, and services. Identify the scope in the metric's name: media CPL and lead generation CPL with allocated costs are not equivalent.
In the denominator, count only leads that meet your chosen rule. For example, if the unit is a unique person, two submissions of the same form should not automatically count as two leads. Also document how invalid contacts will be identified.
How do you calculate CPL step by step?
To calculate marketing CPL, select a campaign and a period, add up the defined costs, and divide the total by the eligible leads associated with that campaign. Before dividing, review duplicates and invalid records. Use the same rules across campaigns to avoid differences caused solely by measurement.
Define the scope. Choose the campaign and the start and end dates for lead capture. Decide whether the analysis covers paid media or all channels.
List the costs. Add up media spend and, when calculating a broader lead generation cost, include creative work, tools, and services attributable to the selected scope. Document how shared costs are allocated.
Define an eligible lead. Establish the minimum fields and validity conditions, such as contact information that allows a follow-up. Separate test submissions and records confirmed to be invalid.
Deduplicate contacts. Use a consistent identifier, such as the email address on record, to find duplicates. Review potential conflicts before deleting records.
Attribute leads. Apply a consistent rule when the same person interacts with more than one campaign. Count each person only once in the consolidated total.
Divide spend by leads. If a campaign spent R$3,000 on media and generated 150 eligible leads, its media CPL is R$3,000 ÷ 150 = R$20.
Keep the data extraction date and the version of your rules with the report. That way, if an integration is fixed or an invalid contact is removed later, you can explain why the result changed.
How do you compare campaigns by lead quality?
Compare campaigns by tracking leads captured during the same period through defined qualification and sales stages. Along with CPL, calculate cost per qualified lead and cost per customer using the same media-spend numerator. A campaign with more expensive signups can produce better sales results.
All figures in the table below are hypothetical. Each column tracks the cohort of eligible leads captured by one campaign during the same period, using the same follow-up window and the same qualification and attribution criteria. Assume the leads have already been deduplicated and attributed exclusively to one campaign.
| Metric | Campaign A | Campaign B |
|---|---|---|
| Media spend | R$3,000 | R$3,000 |
| Eligible leads | 150 | 100 |
| Qualified leads | 15 | 25 |
| Customers | 3 | 5 |
| Media CPL | R$20 | R$30 |
| Media cost per qualified lead | R$200 | R$120 |
| Media cost per customer | R$1,000 | R$600 |
Campaign A has the lower CPL: R$3,000 ÷ 150 = R$20. Campaign B has the lower media cost per qualified lead: R$3,000 ÷ 25 = R$120, compared with R$3,000 ÷ 15 = R$200 for Campaign A.
The same applies to media cost per customer: R$3,000 ÷ 5 = R$600 for Campaign B, compared with R$3,000 ÷ 3 = R$1,000 for Campaign A. This metric is not the full customer acquisition cost, because the calculation includes only media spend.
To decide where to invest, also consider your capacity to follow up and each campaign's other costs. If the follow-up window is still open, label the results as partial: some leads may qualify or buy after the report date.
How do you define a qualified lead and an opportunity?
A qualified lead is a contact who meets the profile and interest criteria agreed upon by marketing and sales. An opportunity is a lead who has advanced to a defined sales stage, such as a conversation in which a need was confirmed. Both classifications depend on documented rules, not just one person's impression.
A team selling services to businesses might consider a contact qualified if they have a relevant need and confirmed interest. It might call a record an opportunity once sales accepts it after a conversation that confirms the need and the possibility of presenting a proposal. These criteria are examples, not universal standards.
In your customer relationship management system (CRM), record the date, stage, person responsible, and reason for disqualification. Preserve the history when a contact changes stages. This helps reconstruct the cohort without counting the same lead again.
To deduplicate, define a key and a procedure for reviewing ambiguous cases. Duplicate contacts, invalid records, and disqualified leads are different situations. A valid contact may not be a fit to buy but still belong to the eligible lead cohort.
What is the difference between CPL, cost per opportunity, and CAC?
CPL measures spend divided by leads. Cost per opportunity divides spend by opportunities. Customer acquisition cost (CAC) divides the defined acquisition costs by the number of customers acquired. The difference is not just in the denominator: the scope of costs must match the metric's name.
| Metric | Denominator | Numerator to disclose |
|---|---|---|
| Media CPL | Eligible leads | Media spend associated with lead capture |
| Media cost per opportunity | Opportunities from the cohort | Media spend associated with lead capture |
| CAC with marketing and sales costs | Customers acquired | Marketing and sales costs included in the selected scope |
For CAC, you can include media, the sales team, tools, and other operational acquisition costs, depending on your methodology. Disclose allocations and exclusions. A calculation that uses only ad spend should be called media cost per customer, even when its denominator is the number of sales.
When there are few customers, a single sale can change the result significantly. Read the metric alongside the cohort size, and avoid concluding that one campaign is better based only on a small difference in a limited sample.
How do you track leads through the sale?
To track leads through the sale, create a cohort based on capture date and follow that same population over a defined window. Record the source, stage changes, and close date in the CRM. Compare campaigns only when their cohorts have had equivalent time to mature.
An attribution rule determines which campaign a lead or sale is associated with. For example, you can attribute the person to the first campaign recorded or the last one before conversion. Choose a rule for the report, document its limitations, and apply it to every campaign being compared.
When the same person appears in different campaigns, do not count each occurrence as a distinct customer in the consolidated result. Keep touchpoints in the history and use the chosen attribution rule to avoid double counting in the campaign comparison.
Google Ads integration is one option for recording stages that happen outside the ad, such as qualification or a signed contract. The Google Ads documentation describes how to import these offline conversions.
Enhanced conversions for leads can supplement the import with user-provided data, such as email addresses, to help with attribution. Matching every record is not guaranteed. Keep the CRM as your operational reference and review technical and privacy requirements before integrating.
How should you handle lead data under the LGPD?
When collecting leads, Brazil's General Data Protection Law (LGPD) requires you to define the purpose and legal basis for processing and properly inform the individual. When you use consent, it must be specific to the chosen purpose, and withdrawing it must be easy.
In a form that uses consent for marketing communications, an example of a separate option is: “I agree to receive marketing emails about the services described.” Also present the purpose, identify the data controller, and provide access to privacy information. Do not treat a form submission alone as blanket authorization for uses that were not disclosed.
In the CRM, record the purpose, the legal basis used, the consent provided and its date, and the source of the record. If the person withdraws consent, stop processing based on that consent for the relevant purpose and record the request. Assess separately whether another legal basis exists for any necessary processing.
According to the Brazilian National Data Protection Authority (ANPD), a data subject can withdraw consent at any time, and the controller must make the process easy. Provide a channel for this request and maintain a process for passing it on to the tools you use.
What mistakes distort cost per lead?
The most common mistakes are comparing costs with different scopes, counting duplicate contacts, and evaluating a cohort's sales before it has had time to mature. A short audit before each report reduces misinterpretation and makes the campaign comparison reproducible by the team.
Use this cohort audit checklist:
Costs: Does the report state whether it includes only media or also creative work, tools, and staff? Is there an allocation rule for shared costs?
Eligibility: Do the campaigns use the same lead definition and the same treatment for tests and invalid contacts?
Duplicates: Is there an identification key and a rule for contacts present in more than one campaign?
Stages: Do qualification, opportunity, and customer stages have criteria and dates recorded in the CRM?
Window: Were all campaigns tracked for the same length of time after capture? Are results that are still partial identified?
Cohort: Did leads, opportunities, and customers come from the same initial population, without mixing in sales from leads captured in another period?
Attribution: Is the rule used to associate results with campaigns documented and consistent?
If any answer is no, correct the report or highlight the limitation before reallocating the budget. A reliable metric starts with a counting rule someone else can reproduce.
To build a lead capture process you can track from source to sale, explore Mais2 Digital's lead generation services.