Digital Marekting

How to Calculate Marketing ROI: Step-by-Step Guide

How to Calculate Marketing ROI: Step-by-Step Guide
Attribution is broken

Marketing ROI is the go-to metric for understanding how much profit your campaigns generate compared to their costs. Here's the formula:

(Revenue – Marketing Cost) / Marketing Cost × 100

For example, if you spend $10,000 on a campaign and it generates $50,000 in revenue, your ROI is 400% - meaning you earn $4 for every $1 spent.

Why It Matters:

  • Strong ROI Benchmarks: A 5:1 ratio is solid, while 10:1 is outstanding. Anything below 2:1 might not be profitable.
  • Better Decision-Making: Helps justify budgets, identify high-performing channels, and shift resources to what works.

Steps to Calculate Marketing ROI:

  1. Track All Costs: Include direct costs (e.g., ad spend, content creation) and indirect costs (e.g., team salaries, software).
  2. Attribute Revenue: Use models like first-touch, last-touch, or multi-touch to credit campaigns accurately.
  3. Adjust for Organic Growth: Subtract sales that would’ve happened without marketing to get a clearer picture.
  4. Analyze and Optimize: Use ROI data to refine campaigns, reallocate budgets, and improve performance.

Accurate tracking tools like Madlitics can simplify attribution and provide insights into which channels and campaigns drive results. By consistently measuring ROI, you can eliminate wasteful spending and turn marketing into a revenue driver.

Step 1: Gather Marketing Costs

To measure ROI accurately, you need a clear picture of all marketing expenses - both the obvious ones and the ones that might not be so apparent. Properly tracking these costs ensures you're not overlooking anything that could skew your results.

Direct Costs

Direct costs are the easiest to spot. These are the expenses tied directly to specific campaigns or activities. For example:

  • Ad spend on platforms like Google Ads or Facebook
  • Agency fees for outsourcing tasks
  • Content creation costs, such as paying freelance writers, designers, or video producers

If you spent $5,000 on a PPC campaign or hired a videographer for $2,500, those are direct costs. These types of expenses are typically well-documented in invoices or dashboards, making them straightforward to track

Indirect Costs

Indirect costs are trickier and often overlooked. These include things like software subscriptions (e.g., Madlitics), team salaries, training programs, and even a share of office overhead.

For labor costs, you can calculate an employee's hourly rate by dividing their annual salary by 2,080 hours (the standard number of work hours in a year). Multiply that hourly rate by the time they spend on a campaign. For instance, if a marketing manager with a $75,000 salary spends 20 hours on a project, their contribution costs about $721 ($75,000 ÷ 2,080 ≈ $36.06/hour × 20 hours).

"You need to know how much you spend in marketing (how much to create content, how much spent in advertising, how much for your marketing reporting software, how much for your marketing staff, etc.) and how many sales you make thanks to these campaigns." - Jonathan Aufray, Growth-Hackers

Ignoring these hidden costs can give you a false sense of success. A campaign might look profitable at first glance, but once you factor in software fees, salaries, and overhead, it could actually be losing money. This might explain why only 37% of CMOs feel confident in proving short-term ROI, and that number drops to just 31% for long-term ROI.

Understanding why marketing attribution matters is essential for this next phase. Once you've nailed down all your costs, you're ready to move on to Step 2: tracking and attributing revenue.

Step 2: Track and Attribute Revenue

Once you've tracked costs, the next step is figuring out which campaigns are actually driving revenue. This involves assigning a financial value to every marketing and sales interaction.

Top-performing marketing teams get this right about 85–95% of the time, while others struggle with accuracy rates as low as 30–40%. Poor attribution systems can lead to 25–40% of marketing budgets being misallocated.

Revenue Attribution Models

Attribution models are frameworks used to credit sales across various touchpoints in a customer journey. Single-touch models are straightforward but limited. For instance:

  • First-touch attribution gives full credit to the very first interaction a customer has with your brand. This approach works well for tracking brand awareness and lead generation.
  • Last-touch attribution credits the final interaction before a conversion. While simple, it overlooks earlier efforts that influenced the customer.

For a broader perspective, multi-touch models come into play:

  • Linear attribution spreads credit evenly across all touchpoints.
  • Time decay attribution assigns more weight to interactions closer to the purchase, making it ideal for longer sales cycles.
  • Position-based models (like U-shaped or W-shaped) give higher credit to key milestones. For example, 40% might go to the first and last touchpoints, with 20% allocated to the interactions in between.
  • Data-driven attribution uses machine learning to dynamically distribute credit based on actual customer behavior.

Choosing the wrong model can skew your results. For example, overemphasizing final interactions can lead to undervaluing early awareness campaigns, which might hurt your overall strategy. Selecting the right model ensures a balanced view and lays the groundwork for using advanced attribution tools.

Using Tools for Attribution

To get attribution right, your data needs to be clean, and your systems - like CRM, automation, and analytics - must be unified into a single, reliable source. Yet, many tools fall short. They often lack transparency around costs or fail to track users across multiple sessions and devices.

This is where platforms like Madlitics shine. It offers complete coverage, tracking not only paid campaigns but also organic search, social media, referrals, and direct traffic. Its persistent attribution ensures that the original lead source is retained even when users return through different sessions before converting. This solves a common problem where leads are mistakenly categorized as "direct" traffic, which can obscure the true source of conversions. Furthermore, it keeps detailed records of landing pages for every submission, so you can tie conversions back to the specific pages and content that drove them.

The result? Businesses that adopt automated marketing attribution typically see a 20–30% boost in ad spend efficiency. With accurate attribution in place, you're ready to calculate your true Marketing ROI.

Step 3: Calculate Marketing ROI

Once you've nailed down your costs and revenue, it's time to calculate your return on investment (ROI). The formula is simple:
(Revenue – Marketing Cost) / Marketing Cost × 100

For example, if you spend $10,000 on marketing and it generates $50,000 in revenue, your ROI is 400% - a 5:1 ratio.

But here's the catch: this basic formula assumes that every dollar of revenue growth stems from your marketing efforts, which isn’t usually the case. To get a clearer picture, you need to account for organic growth - sales that would’ve happened without your campaign. That’s where the attributable ROI formula comes in:
(Sales Growth – Organic Sales Growth – Marketing Cost) / Marketing Cost × 100

If your business naturally grows by a certain amount each quarter, you should subtract that baseline organic growth before calculating ROI. This adjustment ensures your campaign isn’t credited for revenue it didn’t actually drive.

Basic ROI Calculation

Let’s break it down with an example. Say you run a paid search campaign with a total spend of $15,000. By the end of the quarter, it generates $75,000 in revenue. Using the basic formula:

($75,000 - $15,000) / $15,000 × 100 = 400%
That’s a 5:1 ratio - a solid result by most industry standards.

Now, if your historical data shows that your business typically grows by $10,000 per quarter without marketing, you’d adjust the calculation:
($75,000 - $10,000 - $15,000) / $15,000 × 100 ≈ 333%
This adjusted ROI gives you a more realistic measure of your campaign’s performance. As a general rule, an ROI below 2:1 is usually unprofitable once overhead and production costs are factored in, while a 10:1 ratio is considered excellent.

Advanced Metrics for Context

ROI is a powerful metric, but it doesn’t tell the whole story. To gain deeper insights, you should also track metrics like Cost Per Lead (CPL), Customer Acquisition Cost (CAC), and Customer Lifetime Value (CLV):

  • CPL: Divide your total marketing spend by the number of leads generated. This metric helps you understand how efficiently you’re reaching your target audience.
  • CAC: Calculate this by dividing your total sales and marketing costs by the number of new customers. A healthy benchmark is a 3:1 ratio, meaning the lifetime value of a customer should be at least three times their acquisition cost. For instance, if you spend $500 to acquire a customer who brings in $2,000 over their lifetime, your campaign is on track.

For businesses with longer sales cycles - especially in B2B - pipeline influence is another critical metric. It measures how marketing impacts each stage of the sales funnel, highlighting the value of early-stage content and nurture campaigns. Tools like Madlitics can help you pinpoint this influence with accurate attribution.

Step 4: Analyze and Optimize ROI

Calculating ROI is just the beginning; the real impact comes from using that data to make smarter decisions. Top-performing teams achieve this by maintaining precise attribution and consistently refining their strategies through disciplined measurement and adjustments. The next step is to break down each channel’s performance and reallocate resources to maximize results.

Identify High-Performing Channels

ROI calculations reveal which channels truly drive revenue - not just traffic. Relying solely on last-click attribution can lead to overlooking the contributions of top- and mid-funnel activities. To get a clearer picture, you need a more detailed approach to channel tracking.

Platforms like Madlitics allow for deep segmentation, analyzing performance from the campaign source level all the way down to specific ad variations and messaging. For instance, if your dashboard shows that 40% of leads come from "direct" traffic, it’s likely hiding the actual impact of channels like LinkedIn or email. Detailed lead source attribution can uncover the real drivers behind those conversions.

Once you’ve identified which channels deliver the best ROI, apply the 70/20/10 rule: allocate 70% of your budget to top-performing channels, 20% to testing, and 10% to experimenting with new ideas. Reassess and adjust these allocations monthly based on fresh ROI data. If a channel starts contributing more revenue than its current budget share, shift resources accordingly. Without proper attribution, companies often misallocate 25–40% of their marketing budgets, so regular recalibration can help recover significant wasted spend.

Improve Campaigns with Data

After identifying your strongest channels, focus on improving campaigns by analyzing the data and refining your creative strategies. Start with data hygiene - clean up duplicate UTM parameters and fix manual tagging issues in forms that can distort reports and lead to bad decisions. Use tracking URLs with UTM parameters consistently for blog posts, social media, and emails to pinpoint which content drives visitors to your landing pages.

For underperforming campaigns, dive deeper with multi-level segmentation to find the root cause. Is the issue with the audience, the offer, or the creative? Tools like Madlitics let you analyze performance across campaign sources, offers, and specific ad variations, enabling you to isolate weak points and make targeted improvements. Test at least 10 variations of ad copy and creative simultaneously - top-performing creatives often change with the seasons - and let tests run for at least two weeks to account for weekly fluctuations.

It’s estimated that marketing teams waste up to 30% of their budgets on untracked channels. Tools like Madlitics solve this by integrating with your CRM to connect marketing touchpoints to closed-deal revenue. This ensures that the original lead source is credited, even if the conversion happens weeks later across multiple visits or pages. With this level of insight, you can confidently shift budgets from low-performing campaigns to high-performing ones without increasing overall spend. By turning marketing into a predictable driver of growth, systematic ROI analysis and optimization can transform your efforts into a reliable engine for revenue growth.

Madlitics multi-channel attribution visualization, showing marketing platforms like TikTok, Instagram, Google, and Facebook. The graphic highlights how different sources contribute to high-performing marketing channels.
1. Add UTM parameters to all inbound links
Any marketing effort that drives traffic — whether it’s a paid ad, an email campaign, or an organic post — should have properly structured URLs that clearly define the visitor’s origin. Setting it up is a straightforward process that starts with ensuring all inbound links include UTM parameters.

A LinkedIn campaign, for example, might link to:
https://yoursite.com/?utm_source=linkedin&utm_medium=paidsocial&utm_campaign=q1_promo
Screenshot of a form builder interface with a highlighted 'Hidden Input' field. Accompanied by text explaining how to install and set up Madlitics by adding hidden fields to capture marketing attribution data.
2. Add hidden fields
Once you’ve added UTM tracking to your inbound links, the next step is to install Madlitics on your site and update your Framer Forms to include hidden fields that will store attribution data when a visitor submits a form automatically. Hidden fields to include:
• Channel (e.g., Paid Search, Organic Social, Direct)
• Segment 1 (Platform name: Google, LinkedIn, Twitter)
• Segment 2 (Campaign name)
• Segment 3 (Ad group, offer name, or post type)
• Segment 4 (Creative type or ad variation)
• Landing page/group (Tracking & first-touch attribution)
CRM interface showing a detailed view of captured attribution data, including marketing channels, segments, and landing pages. A business profile of a lead is displayed, highlighting how Madlitics enriches lead data for sales and marketing teams.
3. Utilize attribution data
With the setup complete, every form submission in Framer now carries full attribution data, ensuring accurate insights into where leads originate. Pass this data to your CRM, analytics tools, or marketing automation platforms to track performance, refine campaigns, and optimize marketing efforts with precision.

Conclusion

Calculating marketing ROI lays the groundwork for transforming marketing efforts from a cost into a revenue-driving powerhouse. The four-step process outlined here - gathering all costs, tracking attributed revenue, calculating ROI within context, and improving performance systematically - provides a clear path to demonstrate marketing's value while enabling smarter budget decisions. This approach helps you allocate resources efficiently and improve campaign outcomes.

The importance of this cannot be overstated. Poor attribution systems can lead to wasted marketing budgets, while businesses that measure their ROI are 12 times more likely to achieve higher returns compared to those that don't. By pinpointing which channels generate revenue - not just traffic - you can confidently redirect resources from underperforming campaigns to those that deliver results, all without increasing overall spending.

"Marketing ROI isn't a destination; it's a journey of constant refinement." - Arham Khan, Founder and CEO, Pixated

Accurate attribution is the key to turning data into actionable insights. The difference between average and exceptional marketing teams often comes down to attribution accuracy. While many teams operate with only 30–40% accuracy, top-performing teams achieve 85–95%. As discussed earlier, robust attribution - enabled by consistent tracking - connects touchpoints directly to revenue. Tools like Madlitics help close the gap by capturing detailed source data, solving the "direct traffic" mystery, and integrating with CRMs to link marketing efforts to closed deals. This level of precision transforms vague attribution challenges into clear business cases, showing exactly how much revenue is recovered through better tracking.

Start with the essentials: clean UTM parameters, consistent tracking habits, and a 90-day attribution window. As your data matures, incorporate advanced multi-touch models to gain deeper insights. The aim isn’t to achieve perfection immediately but to build a system that becomes more precise and actionable with every campaign. By identifying the costs of inaction and focusing on high-return strategies, you can move beyond justifying budgets and start scaling what works.

Related articles to get you started with Madlitics

Frequently asked questions

Answers to your top questions about our UTM parameters
Put attribution data to work
Sync, analyze, and automate — turn insights into action.
Automation icon indicating hands-free marketing attribution and data flow.
Sync with your CRM
Pass UTM parameters into Salesforce, HubSpot, or ActiveCampaign so your sales team knows exactly where every lead came from — no more guessing.
Analytics report icon, indicating data insights and reporting.
Built smarter reports
Use Google Sheets, Looker Studio, or Airtable to create data-driven reports that reveal which campaigns drive real revenue — helping you make informed budget decisions.
Impact measurement icon, symbolizing marketing effectiveness.
Track revenue impact
Sync UTM data with Stripe, PayPal, or Chargebee to see which campaigns generate paying customers, not just leads — so you can scale what works.
Personalization icon, representing customization features.
Personalize email campaigns
Trigger personalized email flows in Klaviyo, Mailchimp, or ConvertKit based on a lead’s original source — ensuring the right message reaches the right audience.
Visualizing your marketing impact
See how attribution data translates into actionable insights.
Stacked bar chart showing lead generation by marketing channel over time, comparing sources like Paid Search, Paid Social, Organic Search, Direct, and Email. Helps visualize which channels drive the most traffic.
Leads by channel
See how different marketing channels contribute to lead generation over time. Understand which ones drive the most traffic and whether your marketing mix is balanced. Shift your budget toward the highest-performing channels to maximize results.
Stacked bar chart illustrating lead volume across different marketing campaigns, including Black Friday, Retargeted, Spring Promo, Referral, and SEO. Highlights trends in campaign effectiveness.
Leads by campaign
Track inbound leads across all campaigns, whether or not they have UTM parameters. Ensure every lead is categorized correctly, including Organic and Referral traffic. Use this insight to refine messaging, targeting, and budget allocation for better performance.
Line chart displaying lead-to-customer conversion rates by channel, comparing Google Ads, Facebook Ads, LinkedIn Ads, Organic Search, and Email. Shows how different sources drive qualified leads over time.
Conversion rate by channel
See which channels convert leads into paying customers. Some bring buyers, while others generate unqualified leads. Focus your budget on what drives revenue.
Line chart showing revenue performance by marketing campaign, comparing Google Ads, Facebook Ads, and LinkedIn Ads. Helps identify top-performing and underperforming campaigns.
Revenue by campaign
Focus your budget on campaigns that drive revenue, not just leads. Identify top performers and optimize underperforming efforts to maximize profitability.
Everything you need for reliable lead attribution
Accurate, persistent, and automated tracking — so your campaigns perform at their best.
Performance icon symbolizing marketing campaign effectiveness and results tracking.
Outperforms basic UTM tracking
Madlitics captures, categorizes, and persists attribution data across sessions, giving you a complete, structured view of what’s working in your marketing. Say goodbye to losing attribution when users navigate your site, struggling with formatting inconsistencies, and ingored non-UTM traffic.
Capture icon indicating data collection from various marketing channels and sources.
Capture all traffic
Madlitics categorizes all inbound leads — whether they have UTM parameters or not — so every conversion is accounted for, and you won't miss out on Organic Search, Organic Social, and Referral traffic.
Routing icon representing the flow of marketing data and attribution pathways.
Attribution across pages and sessions
A LinkedIn ad click should be attributed correctly—even if the visitor signs up on a different page later. If someone clicks an ad, browses multiple pages, then submits a form later, Madlitics persists attribution data across sessions, ensuring your reports reflect true performance.
List icon representing structured marketing data, reports, or campaign breakdowns.
Cleaner, more reliable data
Duplicate UTMs and inconsistent formatting break reports and mislead teams. Madlitics cleans and organizes attribution data before sending it to your CRM, giving you accurate insights.
Target icon symbolizing precise audience targeting and marketing campaign focus
See which content converts
Attribution isn’t just about where visitors came from—it’s about what convinced them to convert. By capturing landing page data alongside UTM parameters, Madlitics shows you which blog posts, case studies, or pricing pages drive the most revenue, helping you scale content that works.
Action icon representing campaign execution, optimization, and engagement.
Transform form submissions into actionable insights
Madlitics connects marketing touchpoints to lead generation, ensuring every form submission is fully attributed — optimize ad spend by identifying high-ROI channels, refine messaging based on what content drives engagement, make data-driven decisions with clean, structured reports, and more.