keepcalculator

06 Numbers and Powers

Card v04: Three Tier Bootstrap Pricing Card for SaaS

Card No. 06·78753 · Updated · Standard formula, shown below

Recommended tier 2
Middle tier price
29.00 USD
Result
Number of tiers
3
You entered
Price of middle tier
29 USD
You entered
You enter
Number of tiers, Price of middle tier
You get
Recommended tier, Middle tier price
Rounding
0 dp · 2 dp

This page explains how to build a three-tier Bootstrap pricing card for a SaaS landing page, covering the HTML structure, CSS styling, and responsive behavior. You will learn the exact markup and classes needed, how to customize it, and common pitfalls to avoid.

Formula

The calculator above simply identifies the middle tier (the recommended one) and echoes its price. The formula for the recommended tier index is:

r = ceil(t / 2)

where t is the number of tiers (an integer), and ceil rounds up to the nearest integer. The middle tier price is just the value you enter for the middle tier.

Worked Example

With the default values of t = 3 and p = 29:

  1. Compute the recommended tier: ceil(3 / 2) = ceil(1.5) = 2 (the second tier).
  2. The middle tier price is 29 USD.
  3. So the recommended tier is tier 2, priced at $29.

Why Three Tiers?

Three-tier pricing is the most common structure for SaaS because it balances choice with simplicity. Users are not overwhelmed by too many options, yet they have a clear middle option that often serves as the “popular” choice. This pattern, sometimes called the “Goldilocks” effect, nudges users toward the middle plan.

Bootstrap Structure

Bootstrap 5 uses a grid system with row and col classes. For a three-tier card, you typically create a row with three col-lg-4 columns. Each column contains a card component. The middle card often gets a special class like border-primary or shadow to stand out.

How to Build It

Here is a minimal HTML structure for a three-tier pricing card:

  1. Create a <div class="container">.
  2. Inside, add a <div class="row">.
  3. For each tier, add a <div class="col-lg-4 col-md-6">.
  4. Within each column, place a <div class="card"> with a card-body.
  5. Add a card-title (plan name), a price, a feature list, and a button.
  6. For the middle tier, add classes like border-primary and shadow.

Customizing the Middle Tier

The middle tier is often the “recommended” one. You can make it visually distinct by:

  • Adding a badge like “Most Popular”.
  • Using a different background color (e.g., bg-primary).
  • Scaling it slightly with CSS transform: scale(1.05) on desktop.
  • Adding a subtle shadow with shadow-lg.

Common Mistakes

Developers often forget to make the cards responsive. On mobile, three columns become cramped. Use col-12 for small screens and col-md-4 for medium and up. Another mistake is not aligning the buttons at the bottom of each card; use d-flex flex-column on the card body and mt-auto on the button.

Comparison with Other Layouts

While three tiers are standard, some SaaS sites use two or four tiers. Two tiers are simpler but offer less choice; four tiers can overwhelm. A three-tier layout is a safe default, but always test with your audience.

Cost and Time

Building a pricing card with Bootstrap is free and takes about 30 minutes for a basic version. There is no licensing cost for Bootstrap itself. The time increases if you need custom animations or complex responsive behavior.

Accessibility and Safety

Ensure your cards are keyboard-navigable. Use semantic HTML like <button> for actions. Do not rely solely on color to indicate the recommended tier; add a text label. Also, ensure sufficient color contrast for text.

Alternatives to Bootstrap

If you prefer not to use Bootstrap, you can use Tailwind CSS, Foundation, or plain CSS Grid. Tailwind offers utility classes that speed up development. Plain CSS gives you full control but takes longer.

Frequently Asked Questions

How do I make the middle card larger?

Use a CSS media query to apply transform: scale(1.05) on desktop screens. For example: @media (min-width: 992px) { .recommended { transform: scale(1.05); } }. Be careful with overflow on smaller screens.

What if I have more than three plans?

You can still use Bootstrap’s grid. For four plans, use col-lg-3; for six, use col-lg-2. But consider grouping plans or using a toggle to avoid clutter.

How do I add a monthly/yearly toggle?

Use a JavaScript event listener to switch prices. Store both prices in data attributes, like data-monthly="29" and data-yearly="290", and update the displayed value on toggle.

Should the middle plan always be the most popular?

Not necessarily. It depends on your business goals. If you want to push the highest plan, highlight that one instead. The middle is a default, not a rule.

Can I use this with Bootstrap 4?

Yes, the grid and card classes are similar. The main difference is that in Bootstrap 4, you use card-deck for equal-height cards, which is deprecated in Bootstrap 5.

How do I align the buttons at the bottom?

Make the card body a flexbox column: add d-flex flex-column to the card-body, and add mt-auto to the button. This pushes the button to the bottom regardless of content length.

Related

Formula used
in t | Number of tiers | - | 3 | 1 | 6
in p | Price of middle tier | USD | 29 | 0 | 10000
out r | Recommended tier | - | ceil(t / 2) | 0
out m | Middle tier price | USD | p | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →