# Marketing Pricing Section: Calculator

A pricing calculator with sliders and inputs that estimate cost from usage. Use it when plans scale by seats, requests, or volume so buyers see real numbers.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/calculator
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Pricing Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/calculator.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-pricing-sections-calculator
```

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-pricing-sections-calculator.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, card, slider, tabs
- Installs to: `@/components/blocks/marketing/pricing-sections/calculator`

## About this block

Pricing Calculator opens with a centered heading and a short tagline, then
a tab strip that switches between monthly and annual billing (annual shows
a 20% saving label). Below the tabs sits a card holding a labeled slider
that lets a visitor drag their expected monthly API call volume from 1,000
up to 1,000,000, with a live count badge that updates as they drag. Three
plan cards sit beneath it in a responsive grid: Starter, Growth, and Scale.
Each card shows a computed price that responds to both the slider position
and the active billing tab, a base plus usage breakdown line, a feature
list with check icons, and a call to action button. Growth is visually
accented as the recommended tier. A rate table below the grid documents
the four tiered overage rates in a compact bordered table, and a footer
line links visitors to a sales contact for custom volume deals.

The heading, tagline, plan names, feature lists, and button labels are all
plain copy you can swap freely. The number of plans and their included
allowances live in a short data array, so adding or removing a tier is a
single entry. The rate table rows and the annual discount percentage are
also isolated constants, making it straightforward to adjust the economics
without touching the layout.

## When to use

Reach for this block when your product charges by volume and a flat price
card would leave buyers guessing at their real bill. It works well for
platforms where usage varies widely across accounts, such as a logistics
and delivery service billing by shipment events, API calls per route
optimization request, or webhook deliveries per carrier integration.
Buyers can key in their expected throughput and see a number they can
actually budget against, which reduces pricing objections before a sales
conversation starts. The [feature grid](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/feature-grid)
alternative is better when the decision turns on which features each tier
unlocks rather than a cost estimate.

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
  product value before price is introduced
- A [feature section](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to show what
  buyers are paying for

**After**

- [FAQ Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/faq-sections) to handle billing and
  overage questions that surface after seeing the calculator
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to push visitors toward
  signup once they have a number in mind

## What you can customize

All three interactive layers update together, so the block covers a wide
range of usage-based billing models:

- **Slider range and step.** Widen or narrow the min and max to match your
  actual traffic floor and ceiling, and adjust the step to keep the badge
  readable at your scale.
- **Tiered overage rates.** The rate table and the calculator share the
  same data array, so changing a rate updates both the computed card prices
  and the displayed breakdown simultaneously.
- **Annual discount.** One constant controls the 20% saving applied across
  all plans when a visitor switches to the annual tab, and the tab label
  updates to reflect whatever percentage you set.

> Tip: set the slider default to a value that lands squarely inside the
> Growth plan's included allowance so the recommended tier is highlighted
> on first load without any interaction.

## More in Marketing Pricing Sections

- [Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/cards)
- [Custom Builder](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/custom-builder)
- [Enterprise](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/enterprise)
- [Feature Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/feature-grid)
- [Horizontal](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/horizontal)
- [Interactive](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/interactive)
- [Minimalist](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/minimalist)
- [Modern](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/modern)
- [Seasonal](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/seasonal)
- [Simple](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/simple)
- [Stacked](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/stacked)
- [Testimonial](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/testimonial)
- [Toggle](https://www.shadcn-ui-blocks.com/blocks/marketing/pricing-sections/toggle)
