# Marketing Stat: Comparison Metrics

Two columns of numbers placed side by side to contrast before and after results. Use it to show the lift your product delivers over the old way.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-metrics
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-metrics.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-stats-comparison-metrics
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-stats-comparison-metrics.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, card
- Installs to: `@/components/blocks/marketing/stats/comparison-metrics`

## About this block

Comparison Metrics is a before-and-after stats section. A centered
heading and short paragraph sit at the top, followed by a two-column
grid of cards. Each card has three horizontal layers: a header row with
an icon, a metric name, and a short description; a split body with the
baseline figure on the left and the improved figure on the right; and a
footer strip that shows the percentage gain or reduction in green. Below
the grid sits a case study callout with a circular logo placeholder, a
pull quote, and an attribution line. The section closes with a boxed
call to action that holds two buttons.

The four metric cards, the badge text, the heading, and the subheading
are all straightforward to swap. You can add or remove cards from the
grid, change the before and after labels to suit your framing (industry
average vs. your result, old process vs. new), and replace the case
study copy and logo placeholder with a real customer. The CTA box
buttons and their link targets are independent of the rest.

## When to use

Reach for this block on a results or outcomes page where you need to
show learners or buyers the measurable lift they can expect. It works
well for an online education platform that wants to contrast learner
outcomes before and after a course, or a certification product comparing
pass rates against the self-study average. The split card format makes
the gap between baseline and result immediately legible without a chart,
which gives it an edge over a plain stats strip when the contrast itself
is the story.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to establish the
  promise before drilling into proof
- [Horizontal With Dividers](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/horizontal-with-dividers)
  for a quick top-line summary that primes readers for detail below

**After**

- [Customer Testimonial](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/customer-testimonial)
  to reinforce the numbers with a named customer voice
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to convert readers
  who are convinced by the data

## What you can display

This block is built for showing the measurable gap between a starting
point and a better outcome. A few ways to use it:

- **Course completion outcomes.** Show average pass rates or time to
  completion before and after learners use your platform, with a pull
  quote from a program director.
- **Operational before and after.** Contrast old process costs or cycle
  times against the new baseline to make efficiency gains concrete for
  buyers evaluating the ROI.
- **Competitive benchmarks.** Swap the "Before" label to an industry
  average and "After" to your platform result to frame the comparison
  against the market rather than a customer's prior state.

> Tip: keep the improvement label short, one phrase like "40% reduction"
> or "3x faster," so the footer strip stays tight and scannable.

## More in Marketing Stats

- [Achievement Bars](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/achievement-bars)
- [Card Group](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/card-group)
- [Circular Progress](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/circular-progress)
- [Comparison Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-stats)
- [Customer Testimonial](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/customer-testimonial)
- [Funnel Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/funnel-stats)
- [Gradient Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/gradient-grid)
- [Growth Timeline](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/growth-timeline)
- [Horizontal With Dividers](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/horizontal-with-dividers)
- [Impact Numbers](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/impact-numbers)
- [Interactive Hover](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/interactive-hover)
- [Metric Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/metric-cards)
- [One Main With Three Follow Ups](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/one-main-with-three-follow-ups)
- [Progress Bars](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/progress-bars)
- [Simple 3 Cols](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/simple-3-cols)
- [Sparkline Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/sparkline-stats)
- [Stats With Icons](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/stats-with-icons)
- [Timeline Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/timeline-stats)
- [Trust Indicators](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/trust-indicators)
