GA4 Calculated Metrics

July 25, 2025

Standard metrics are powerful, but they often lack the specific business context that turns data into decisions.

You know the important questions: What’s our actual margin on this product line? How many of our users are genuinely inactive? What’s the average order value per session, not just per user?

Answering these requires you to stitch data together manually, which is a fiddly, time-consuming process. But what if you could build these bespoke measurements directly into GA4?

That’s where calculated metrics come in. They are your secret weapon for creating more valuable, actionable reports that reflect your specific business logic.

Here’s how to get started.

Table of Contents

What Calculated Metrics?

Calculated metrics do pretty much what they say on the tin. They are custom metrics you create by combining one or more of GA4’s existing metrics using a mathematical formula.

Think of it like this: GA4 gives you the basic ingredients (views, transactions, shipping amount).

Calculated metrics let you write your own recipes.

For instance, a standard report might show you an item’s price. But a far more valuable metric would be the item’s margin. You can create this by taking an existing metric like Item Price and subtracting a custom metric you’ve created, like Cost of Goods Sold.

The result is a new, custom metric that you can add to your reports and explorations, giving you a much clearer picture of performance.

GA4 Limits

  • Property Limits: You can create up to 5 calculated metrics on a standard GA4 property. If you’re using a GA4 360 account, this limit increases to 50.
  • No Nesting Dolls: You can’t use one calculated metric in the formula of another. Your formulas can only use the predefined metrics available in GA4 (and they are a little limiting)

How to Set Up Your First Calculated Metric: A Step-by-Step Guide

  1. Navigate to Admin in your GA4 property.

  2. In the ‘Data display’ column, click on Custom definitions.

  3. You’ll see three tabs: ‘Custom dimensions’ and ‘Custom metrics’ as well as ‘Calculated Metrics’ Click that, and then click the blue Create calculated metric button.

Finding calculated metrics

Now, you’ll see a configuration panel. Here’s how to fill it in:

  • Name: Give your metric a clear, descriptive name (e.g., “Shipping Revenue as % of Total”). This is what will appear in your reports.

  • API Name: This is generated automatically from the name you enter. You can edit it now, but you can’t change it later, so make sure it’s right.

  • Description: Don’t skip this! Explain what the metric does and why it’s useful. This context appears when you hover over the metric in a report and is a lifesaver for your future self and your colleagues.

  • Formula: This is where the magic happens. Start typing to search for the metrics you want to use (e.g., {Purchase revenue}). Metric names must be enclosed in curly brackets {}. You can use standard operators: +, -, *, /, and parentheses () to build your formula. The formula has a limit of 1024 characters.

  • Unit of measurement: Choose how you want the data to be displayed (e.g., Standard, Currency, Distance). For a percentage, you’d select ‘Standard’.

  1. Click Save, and you’re done! Your new metric will now be available in the metric selector when you build reports and explorations.

New Calculated Metric

Practical Use Cases 

The real power here is in solving your specific reporting gaps. Here are a few common and highly effective calculated metrics I’ve built with clients to get you thinking:

  1. Shipping Revenue as a Percentage of Purchase Revenue
    • Formula: {Shipping amount} / {Purchase revenue}
    • Why it’s useful: Instantly see if your shipping fees are a significant contributor to your revenue or simply a cost-recovery exercise.
  2. Item Discount Percentage
    • Formula: {Item discount amount} / {Item revenue}
    • Why it’s useful: Understand the real impact of your promotional activity on a per-item basis. Are your discounts driving volume or just eating into your margins?
  3. Views Per Transaction
    • Formula: {Views} / {Transactions}
    • Why it’s useful: Get a feel for how much consideration goes into a purchase. A high number might suggest customers need a lot of convincing or that your product pages are complex.
  4. Average Conversion Value Per Session
    • Formula: {Event value} / {Sessions}
    • Why it’s useful: This is fantastic for comparing the quality of traffic from different marketing channels. A channel might bring fewer sessions but have a much higher value per session, indicating a higher quality audience.
    • Average Conversion Value Per Session
      1. Formula: {Event value} / {Sessions}
      2. Why it’s useful: This is fantastic for comparing the quality of traffic from different marketing channels. A channel might bring fewer sessions but have a much higher value per session, indicating a higher quality audience.
  5. Article Completion Rate
    • Formula: {Scrolled Users} / {Views}
    • Why it’s useful: Great for understanding how many views of your blog actually result in someone reading the whole thing (gulp, read down to the bottom folks!)

Thanks to Himanshu Sharma and Loves Data for some of these.

Where to see your calculated metrics?

This is the fun part. Now that you have created your calculated metric, you’ll want to see it right?

Calculated metrics can be added to any reports or built into any explorations.

I’ve added my Article completion rate metric to the page report below.

As it’s also available via the API, you can see this information in Looker Studio too.

Article Completion Rate

Your Turn to Get Started

Calculated metrics bridge the gap between the data GA4 provides and the answers your business needs.

They allow you to embed your unique business logic directly into the platform, making your reports smarter, more relevant, and ultimately, more actionable.

Start with one of the examples above, or think about a question you’ve always wanted to answer but couldn’t with the standard reports.

The opportunity is there to find out what you can do. Go on, get stuck in.

Frequently Asked Questions (FAQs)

Q1: How many calculated metrics can I create in GA4?

A: You can create up to 5 calculated metrics in a standard GA4 property and up to 50 in a GA4 360 property.

Q2: Can I use a calculated metric inside another calculated metric’s formula?

A: No, you cannot reference a calculated metric within another. You can only use the predefined standard and custom metrics available in GA4.

Q3: Where can I use calculated metrics once they are created?

A: You can use them across the GA4 platform, including in your standard reports, within the ‘Explore’ section, and when pulling data via the Google Analytics Data API.

Kyle

Author

Hello, I'm Kyle Rushton McGregor!

I’m an experienced GA4 Specialist with a demonstrated history of working with Google Tag Manager and Looker Studio. I’m an international speaker who has trained 1000s of people on all things analytics.

Scroll to Top