The short answer

To calculate conversion rate, divide the number of conversions by the number of visitors (or sessions) in the same period, then multiply by 100 to get a percentage.

Conversion rate = (conversions ÷ visitors) × 100

If 1,800 orders came from 60,000 sessions last month, the session-based conversion rate is 1,800 ÷ 60,000 × 100 = 3.0%.

The formula takes ten seconds. The hard part is everything around it: deciding what counts as a conversion, choosing between sessions and users as the denominator, filtering out traffic that was never going to buy, and segmenting so the average doesn't mislead you. Get those wrong and you can spend months optimizing a number that doesn't mean what you think.

This is part three of our CRO fundamentals series. If terms like "micro conversion" or "denominator" are unfamiliar, the CRO glossary covers them.

Key takeaways

  • The basic formula is conversions divided by visitors, times 100, but you must define both parts first.

  • Sessions, users, and visitors give different rates. Choose one and keep it consistent.

  • Overall averages hide big differences between devices, channels, and customer types.

  • Revenue per visitor is often a better primary metric than conversion rate alone.

  • A change in conversion rate means little without checking order value, refunds, and customer quality.

Step 1: Decide what counts as a conversion

Before any arithmetic, write down the action you're counting. "Orders" sounds simple, but you still need to decide:

  • Do you count orders placed, or orders paid? Cash on delivery means an order can be placed and never completed.

  • Do you count cancelled or refunded orders? Usually you'd exclude them from your core business metric, though you might track them separately.

  • Do you count one conversion per visitor, or every conversion? A customer who buys three times in a month is three orders but one buyer.

For lead generation, the same questions apply. A form submission isn't the same as a qualified lead. If half your submissions are spam or people outside your service area, counting all of them inflates the rate and hides the actual problem.

A good habit is to define conversions as close to real value as your data allows. Tracking "order confirmed and paid" is better than tracking "clicked the buy button."

Macro and micro conversions

Most sites track more than one conversion at once.

Macro conversions are the outcomes that earn revenue: purchases, paid subscriptions, booked appointments.

Micro conversions are the steps along the way: viewing a product, adding to cart, starting checkout, creating an account, watching a video.

Micro conversions help you diagnose where people stall, and they accumulate faster than purchases, so they're useful when traffic is low. But keep one macro conversion as the anchor. Optimizing a micro conversion in isolation can quietly harm the real outcome. A pop-up that doubles email signups while driving away would-be buyers has improved a number and damaged the business.

Step 2: Choose your denominator

The denominator, the "visitors" part of the formula, is where most disagreement happens. There are three common choices.

Session-based conversion rate

Divide conversions by sessions. A session is a single visit, a group of interactions within a time window. One person can create many sessions.

This is the default in many analytics tools, and it's the one most eCommerce teams use. It reflects the reality that people often visit several times before buying, and it lets you attribute conversions to the traffic source or device of the converting session.

The downside is that it penalizes you for considered purchases. If someone visits four times over a week before buying, that's one conversion across four sessions, which pulls the session rate down even though the customer behaved normally.

User-based conversion rate

Divide the number of converting users by the number of unique users. This answers a different question: of the people who came to the site, what share eventually bought?

It's better suited to long consideration cycles, like furniture or software, because it doesn't treat a return visit as a failure. The drawback is that "users" are imperfectly counted. People switch devices, clear cookies, and use private browsing, so one person can look like several users.

Visitor or "unique visitor" rate

Some tools use unique visitors over a given period. It sits between the two, with similar identity-matching issues.

Which should you use?

Pick the one that matches your decision. For optimizing individual pages and testing, session or visitor-level counts are practical, because experiments assign people at a given level and measure outcomes against it. For understanding the overall customer journey, user-based views help. What matters most is consistency: never compare one month's session rate with another month's user rate. And when you read someone else's benchmark, check which one they used.

Here's an illustration of how much it can matter.

Measure Count Orders Rate
Sessions 60,000 1,800 3.00%
Unique users 41,000 1,650 buyers 4.02%

Same site, same month, and the rate differs by more than a full percentage point depending on how you count. Neither is wrong. They answer different questions.

Step 3: Clean the data

Raw traffic includes visitors who were never real prospects. Before you trust the rate, consider filtering:

  • Bots and crawlers. Many analytics tools filter known bots, but not all.

  • Internal traffic. Your own team browsing the store, testing orders, and checking pages should be excluded.

  • Spam referrals and fake traffic, which can distort low-traffic sites.

  • Irrelevant geographies if you can't serve certain countries.

  • Test and staging data that's leaked into production reports.

Cleaning the data usually raises your rate a little. That's fine. A cleaner measurement is a truer one, and consistency matters more than the absolute figure.

Step 4: Segment the result

A single overall number is the least informative way to look at conversion. Different groups behave differently, and mixing them hides both problems and opportunities.

Useful segments to examine:

  • Device category. Mobile, desktop, and tablet often differ widely. A common pattern is that mobile brings more visits but converts at a lower rate, which can mean a mobile-specific problem or simply a different shopping behavior, such as browsing on the phone and buying later on a laptop.

  • Traffic source. Branded search, non-branded search, email, paid social, and direct visits carry very different intent.

  • New versus returning visitors. Returning visitors tend to convert at higher rates.

  • Landing page or product category. Some categories sell themselves, others need more explanation.

  • Geography. Delivery times, payment methods, and trust vary by region. In MENA markets, for example, availability of cash on delivery or local payment methods can change conversion considerably.

  • Customer type. First-time buyers versus repeat customers, or B2B versus B2C.

A worked example shows why this matters. Imagine a store with these results:

Device Sessions Orders Conversion rate
Desktop 20,000 900 4.5%
Mobile 36,000 820 2.28%
Tablet 4,000 80 2.0%
Total 60,000 1,800 3.0%

The blended 3.0% looks respectable. But the segment table shows that mobile makes up 60% of traffic and converts at roughly half the desktop rate. If mobile reached even 3.5%, the store would gain about 440 extra orders a month from the same traffic. That's the problem worth chasing, and the overall average would never have pointed to it.

Step 5: Look beyond the rate

Conversion rate is a ratio, and ratios can mislead. A higher rate isn't automatically better if the customers are worth less. Track these alongside it.

Average order value (AOV)

AOV is total revenue divided by the number of orders. If a change raises conversion but pushes shoppers toward cheaper items, revenue might not improve.

Revenue per visitor (RPV)

RPV is total revenue divided by total visitors or sessions. It combines conversion rate and AOV into one figure:

RPV = conversion rate × average order value

With a 3% conversion rate and a $50 AOV, RPV is 0.03 × $50 = $1.50 per session. If a variation lowers the rate to 2.9% but lifts AOV to $55, RPV becomes about $1.60, a gain. That's why many experienced practitioners prefer RPV as the primary metric for store tests: it captures both effects.

One caution: RPV is noisier than conversion rate, because order values vary a lot and a few large orders can swing the number. It usually takes more traffic to detect a change reliably.

Refunds, returns, and cancellations

A conversion that comes back as a refund isn't a clean win. Check net revenue, not just gross, especially after changes to messaging that might oversell a product.

Cost per acquisition (CPA)

CPA is spend divided by conversions. If you're improving a paid landing page, CPA tells you directly whether the change is paying off in lower acquisition cost.

Customer quality and lifetime value

Some changes attract customers who buy once and never return. Where you can, follow cohorts forward and compare repeat purchase behavior.

Step 6: Mind the time window and conversion lag

People don't always convert in the same session they first arrive. There's a lag between first visit and purchase, which varies with price and complexity. A cheap impulse buy might convert within the hour. A laptop might take a week or two.

This matters for two reasons.

First, recent periods always look worse than they eventually will, because some of the people who visited this week haven't bought yet. If you compare last week's rate to last quarter's, you may be comparing an unfinished number to a finished one.

Second, in tests, you need to run long enough to capture typical purchase lag, and to cover whole weeks so that weekday and weekend behavior are both represented. We cover duration in A/B testing explained.

Step 7: Compare fairly

Once you have a clean, segmented number, you'll want to know whether it's moving. Here's how to compare without fooling yourself.

  • Compare like with like. Same segment, same definition, same denominator.

  • Use equal, full-week periods. Comparing a Monday-to-Thursday window with a full week skews results.

  • Account for promotions and seasonality. A sale week and a normal week aren't comparable. Neither is the week before a major holiday.

  • Watch for changes in traffic mix. If you launched a new ad campaign that brings colder traffic, your overall rate can fall even though nothing on the site got worse.

  • Ask about volume. A move from 3.0% to 3.1% on a small number of orders is well within normal fluctuation.

That last point is crucial. Conversion rates bounce around by chance, especially at low volumes. Before reading anything into a small change, ask whether it's bigger than the usual week-to-week variation. Looking at a few months of weekly rates will give you a feel for the normal range.

Setting up measurement properly

Good calculation depends on good tracking. A few practical points:

  • Track completed actions, not clicks. A click on "Pay now" isn't a payment. Fire the conversion event on the confirmation after the order is recorded.

  • Avoid double counting. Refreshing a thank-you page shouldn't count a second conversion. Use unique order IDs to deduplicate.

  • Check against your backend. Compare analytics orders to your store or CRM orders. They'll rarely match exactly, because of blocked scripts and consent choices, but a large gap signals a problem.

  • Mind consent. In regions with consent requirements, analytics may only capture a share of visitors. That can skew the rate if consenting and non-consenting visitors behave differently.

  • Use consistent naming. In Google Analytics 4, what used to be called "conversions" are now called key events, and you choose which events to mark as key. Keep that list short and intentional.

A quick worked example, start to finish

Suppose you run an online store and want to know whether your conversion rate is healthy.

  1. Define the conversion: a paid, confirmed order.

  2. Choose the denominator: sessions, excluding internal traffic and known bots.

  3. Pull eight full weeks of data: 480,000 sessions, 13,200 paid orders.

  4. Calculate: 13,200 ÷ 480,000 × 100 = 2.75%.

  5. Segment: desktop converts at 3.9%, mobile at 2.1%, with mobile at 62% of sessions.

  6. Add AOV and RPV: AOV is $42, so RPV is 0.0275 × $42 = about $1.16 per session.

  7. Check quality: refund rate is 6%, which you note for context.

  8. Identify the priority: the largest gap is mobile, so the next stage of research focuses on the mobile funnel.

That's a useful snapshot. It tells you where to look, which is far more valuable than the headline number.

Common mistakes when calculating conversion rate

Mixing definitions across reports. Comparing a session rate in one tool to a user rate in another produces confusing differences.

Counting micro conversions as wins. More add-to-carts don't equal more revenue.

Ignoring segments. Averages smooth over the problems you most need to see.

Comparing unequal periods. Partial weeks, sale periods, and holidays distort comparisons.

Chasing small movements. Normal variation can look like a trend.

Optimizing rate while ignoring value. A higher rate with lower order value or more returns may be a loss.

Frequently asked questions

What is the formula for conversion rate?

Conversion rate equals conversions divided by visitors (or sessions), multiplied by 100. For example, 250 signups from 10,000 sessions is a 2.5% conversion rate.

What is a good conversion rate for eCommerce?

Commonly quoted averages sit around two to three percent, but they vary hugely by industry, price, device, and traffic source. A good rate is one that's improving against your own baseline in the segments that matter, without hurting order value or customer quality.

Should I use sessions or users to calculate conversion rate?

Sessions are the practical default for page optimization and testing. Users suit long buying cycles. Whichever you choose, use it consistently, and check which one any benchmark you read is based on.

Why is my mobile conversion rate lower than desktop?

Often because of real differences in behavior, such as browsing on the phone and buying later on a computer, plus genuine mobile friction like small tap targets, slow pages, and awkward forms. Investigate with session recordings and mobile usability tests before assuming it's a design failure.

Is revenue per visitor better than conversion rate?

For many stores, yes, as a primary test metric, because it reflects both how many people buy and how much they spend. It's noisier, so it needs more traffic to measure reliably.

How do I calculate conversion rate in Google Analytics 4?

Mark the relevant event, such as a purchase, as a key event, then use the session key event rate or user key event rate in your reports. Check which of the two you're looking at, since they use different denominators.

Where to go next

With a trustworthy baseline, you can start looking for where visitors are lost. The next article, conversion funnel analysis, shows how to map the journey, size each leak, and decide what to investigate first.

If you want to see how these measures apply at a single stage, Why Users Abandon Checkout is a good companion read. For the overall method, revisit what CRO is.

Series contents

  1. What Is Conversion Rate Optimization (CRO)?

  2. CRO Glossary: 40+ Terms Explained

  3. How to Calculate Conversion Rate (you are here)

  4. Conversion Funnel Analysis

  5. CRO Research Methods

  6. CRO Hypotheses and Prioritization

  7. A/B Testing Explained

  8. A/B Testing Mistakes to Avoid

  9. Landing Page Optimization

  10. Building a CRO Program