Guides / Squarespace

How to Add a Pricing Table with a Monthly/Yearly Toggle to Squarespace

October 30, 2026 · 4 min read

If you sell memberships, coaching packages, classes or subscriptions, the pricing section is where visitors decide. A clear one answers "how much?" and "which one is for me?" in a few seconds. A cluttered one sends them to your inbox, or away.

Squarespace has no pricing table block, and no way to switch between monthly and yearly prices. This guide covers how to lay out plans well with what Squarespace has, free code for a monthly/yearly toggle, and an option that keeps your plans in a Google Sheet.

What makes a pricing table work

Before the layout, the content. Good pricing tables:

  • Show three plans or fewer where possible. Two is a choice; five is homework.
  • Name each plan for who it's for, with one short line underneath: "For individuals getting started."
  • Lead with the price, large, with the period right next to it: "$29/month."
  • List what's included the same way on every card, in the same order, so people can compare across. Showing what a cheaper plan *doesn't* include makes the step up obvious.
  • Point to one plan. A "Most popular" label and a highlighted card help undecided visitors pick.
  • End each card with one clear button that goes straight to checkout, booking or sign-up.

Laying out plans with Squarespace blocks

You can build static plan cards without code:

  1. Add a section with three columns. In Fluid Engine, place three Text blocks side by side.
  2. In each, add the plan name as a heading, the price as a large paragraph, a short bulleted feature list, and a Button block underneath.
  3. Give the recommended plan a different background with a Shape block behind it, or a "Most popular" line above its name.

This works on every plan. The catch: there's no monthly/yearly switch, and changing a price means editing every page it appears on.

The free way: a monthly/yearly toggle

This works on Core, Plus and Advanced plans (and legacy Business and Commerce), because it uses a little JavaScript. Add a Code Block, set it to HTML, and paste:

<div class="pt">
  <p><button type="button" data-period="monthly">Monthly</button> <button type="button" data-period="yearly">Yearly (save 20%)</button></p>
  <div style="display:flex;flex-wrap:wrap;gap:16px">
    <div style="flex:1 1 220px;border:1px solid #ddd;border-radius:12px;padding:20px">
      <h3>Basic</h3>
      <p style="font-size:2em;font-weight:700;margin:0" data-monthly="$29/mo" data-yearly="$290/yr">$29/mo</p>
      <p>1 session a month · Workout plan</p>
      <a href="/basic">Choose Basic</a>
    </div>
    <div style="flex:1 1 220px;border:2px solid #1d5c45;border-radius:12px;padding:20px">
      <h3>Plus</h3>
      <p style="font-size:2em;font-weight:700;margin:0" data-monthly="$79/mo" data-yearly="$758/yr">$79/mo</p>
      <p>4 sessions a month · Nutrition plan</p>
      <a href="/plus">Choose Plus</a>
    </div>
  </div>
</div>
<script>
document.querySelectorAll(".pt").forEach(function (t) {
  t.addEventListener("click", function (e) {
    var p = e.target.getAttribute("data-period");
    if (!p) return;
    t.querySelectorAll("[data-monthly]").forEach(function (el) { el.textContent = el.getAttribute("data-" + p); });
  });
});
</script>

Each price has both versions written into it (data-monthly and data-yearly), and the buttons swap between them. Copy a card div for each plan.

What it doesn't do: the buttons don't show which period is selected, the savings label is typed by hand, the same checkout link is used for both periods, and every price change means editing code. It's fine for two or three plans that rarely change.

Working out the yearly price

Most businesses discount yearly plans by about two months, or 15–20%. The math: yearly price = monthly price × 12 × (1 − discount). At $29/month with 17% off, that's $29 × 12 × 0.83 ≈ $289, so $290 is a clean number.

Many pricing pages show the yearly plan as a monthly figure ("$24/month, billed yearly"), which makes the saving obvious next to the $29 monthly price. Just make sure the yearly total is shown too, so nobody is surprised at checkout.

On the Basic or Personal plan

Basic plans don't run JavaScript in Code Blocks, so the free toggle won't switch. Use the block layout above, upgrade to Core, or load a pricing table script through a Markdown Block, a widely used workaround. How to add custom code to Squarespace without upgrading explains it.

Where the buttons should go

A pricing table doesn't take payments itself. Each button links to wherever people pay or sign up: a Squarespace product or Member Site, a Stripe or PayPal payment link, a booking page like Acuity, or your contact form for "Custom" plans. If monthly and yearly are separate products, use a separate link for each.

The ready-made option

The Pricing Table does all of this from a Google Sheet:

  • A Monthly/Yearly switch that shows "Save 20%", worked out from your own prices
  • Yearly shown per month ("$24/month, $290 billed yearly") or per year, your choice
  • A "Most popular" badge and highlighted card, and a feature checklist with crossed-out "not included" items
  • Prices formatted for any currency; "Free" or "Custom" shown as typed
  • One button per plan, with separate monthly and yearly checkout links if you need them
  • Works on every Squarespace plan, with instructions for Code Blocks and the Markdown Block method on Basic, plus a WordPress shortcode

Change a price in the sheet and every pricing table on your site follows. It's $19 once, for unlimited sites, including client sites. Try the live demo.

Want to try the settings first? The free pricing table builder shows your choices live and writes the code for you.