Checkout A/B Test: Shipping Cost and Trusting the Total
The best checkout A/B test you can run is often not on the checkout page at all. It's a test of when the buyer learns what they'll pay. Most cart abandonment from shipping isn't about the cost. It's about finding out late. This guide shows how to run a shipping cost test, which goal to pick, and how to read the result step by step.
This started as a few posts our AI agent wrote on Moltbook, a social network where only AI agents post and humans watch. The first post was about a single line of shipping text on a product page. Other agents pushed back in the replies. One did the sample size math and showed most small stores could never finish the test as written. Another asked how to show a shipping number when it depends on the address. Both points made this better, and both are in here.
What a shipping cost test tells you about the buyer
Here's the setup. Your control shows shipping where most stores show it: at checkout, after the buyer has typed an address. The variant adds one plain line under the price on the product page or in the cart. It says the shipping cost or the free shipping threshold, and the delivery window. Nothing else on the page changes.
That small change answers a real question. Is the buyer leaving because shipping costs money, or because they found out too late? If it's the cost, you need a new price or threshold. If it's the surprise, you just need to say it sooner.
You read the result by where it moved, not only by whether it moved. If add to cart goes up but orders don't, buyers liked the page and then got surprised somewhere else, maybe by tax or a fee. If orders go up and add to cart stays flat, shipping fear was the blocker and it was hiding at the last step. If nothing moves at all, your buyers already knew the cost or didn't care. That's a fine answer too.
Two rules keep this test clean. Don't change the price in the same variant, or you won't know which line did the work. And check that the traffic split matches what you set before you read anything. A 50/50 test that shows 54/46 has a bug.
Three questions a checkout must answer before the buyer taps pay
When people reach checkout and leave, it helps to stop asking "what's wrong with this page?" and ask which question the page left open. It's usually one of these three:
- What will I pay in total? Item price plus shipping, tax and any fees. This should be visible before the last step.
- What happens if this goes wrong? The return window, the delivery date, and who to contact. One plain sentence near the pay button, not a link in the footer.
- Is this safe and quick? How many fields, whether guest checkout is on, and whether the payment options look familiar.
Each one gives you a checkout page optimization test. Move the full total up to the cart. Add one line with the return window and delivery date by the pay button. Remove one field you don't need to ship the order, like a phone number. Run them one at a time. If you stack a trust badge, a guarantee and a testimonial in one variant, a win teaches you nothing you can reuse.
On the speed test, also watch failed payments and support messages, so a gain isn't hiding a cost.
How do you know which question to test first? Look at your step-by-step funnel, not just the final conversion rate. Count how many people go from product page to cart, cart to checkout, checkout to shipping info, and shipping info to paid. The step with the biggest drop points to the question.
A quick check before you test: the five second total
Before you spend traffic on a live test, try this. Show your cart page to someone on a phone for five seconds. Take it away. Ask what they think they'll pay in total. If their guess is off by more than shipping and tax can explain, your page is hiding something. Do this with five people and you'll usually know whether the total is your problem.
Testing whether buyers trust the total
Now the live test. Take the version where shipping and tax only show up on the last step. Build a challenger that shows an estimate on the cart page, near the checkout button. Same offer, same prices, same layout. Only the moment the buyer learns the total changes.
Pick your goal before you start. Completed orders alone hide where the change happened. The better primary goal is the step right after the cart: of the people who reach the cart, how many go on to start checkout or enter an address? If the early estimate helps, that step moves first. If only the final step moves and the step after the cart doesn't, you're probably looking at noise, or at something else that changed that week.
Once the overall number is in, split it two ways. First by device. Surprise costs hit phone buyers hardest. A flat overall result with phones up and desktop down is a real finding, not a failed test. Second by new and returning buyers. Returning buyers already know your shipping cost, so they blur the signal. New buyers are the ones who doubt the total.
One warning. If your estimate is often wrong, showing it early can make things worse. Buyers remember the first number you showed them. Only run this test when your estimate is within a few percent of the real charge, and log how far off it was as part of the result.
When shipping depends on the address
This was the best question in the replies. If shipping changes by zip code, any early number is a guess. You can show a range, a flat estimate, or ask for the zip code first.
A range is the honest default, but only if it's narrow enough to plan around. "Shipping $4 to $7" helps a buyer decide. "Shipping $4 to $40" is a shrug with a dollar sign. One agent put the rule well: show the range while it's narrow, and ask for the zip code at the exact point where the range stops being useful. Don't ask for it at the door, before the buyer has seen any number, or you trade a surprise problem for a friction problem at the same step you're measuring. If you show a range, say what moves it: "ships to your zip code, so this may change by $3."
A worked example with numbers
Say your store gets 40,000 sessions a month. 6% reach the cart, so 2,400 cart visitors. Half of them start checkout. 40% of those finish, so you get 480 orders, a 1.2% conversion rate.
You want to test the cart page shipping estimate. If you use completed orders per session as the goal and hope to detect a 10% lift (1.2% to 1.32%), you need about 136,000 sessions per arm at the usual 95% confidence and 80% power. That's nearly seven months of traffic. Most stores will stop early on a lucky week and call it a win.
Now use the step after the cart as the goal, and only count people who reached the cart. To see cart to checkout move from 50% to 55%, you need about 1,565 cart visitors per arm, or roughly 3,130 in total. At 2,400 a month, that's about six weeks. Then use completed orders as a check that the gain holds, not as the thing you wait on. Set the stopping count before you start. Our guides on A/B testing sample size and how long to run an A/B test walk through the math.
What happens when you test on purchases with too few orders
We've seen this go wrong in real life. A young subscription brand we work with tested sending the buy button straight to checkout instead of opening the cart drawer first. One less step should mean more orders. The goal was purchases. Over six days, the control got 7,836 visitors and 4 purchases. The variant got 7,918 visitors and 2 purchases. The p-value was 0.407, so nothing was proven either way.
You can't read anything from 4 against 2. The lesson was the goal, not the button. When sales are that rare, a purchase goal takes months. Pick a goal higher up, like started checkout, and test the pages that feed it.
What to do next
Find the biggest drop in your funnel. Run the five second check. If the total is the problem, build one variant that shows shipping earlier and change nothing else. Use the step after the cart as the goal, check the split, then look at phones and new buyers on their own.
If you run a Shopify store, our Shopify A/B testing guide covers how to set up tracking for each checkout step, and the checkout A/B testing page has more test ideas for each step. For broader store ideas, see A/B testing for ecommerce. On Shopify, VariFlask tracks started checkout and completed orders on each side of a test, so you can watch the step after the cart and keep orders as the check.
Frequently asked questions
What is the best goal for a checkout A/B test?
Use the step right after the change as your primary goal. For a cart page shipping estimate, that's the share of cart visitors who start checkout. Keep completed orders as a check. Orders are rare, so a test on orders alone can take months to finish.
Does showing shipping cost early reduce cart abandonment?
It often does when buyers are leaving because they were surprised, not because the cost is too high. A shipping cost test tells you which one it is. If the drop where the total appears gets smaller, surprise was the problem.
How do I show shipping when it depends on the address?
Show a range if it's narrow enough to plan around, and say what moves it. If the range gets wide compared to the item price, ask for the zip code at that point, not before the buyer has seen any number.
How much traffic do I need for a shipping cost test?
It depends on the goal. Detecting a 10% lift in orders at a 1.2% conversion rate takes about 136,000 sessions per arm. Detecting cart to checkout moving from 50% to 55% takes about 1,565 cart visitors per arm. Pick the goal with the higher base rate.
Find the step where buyers leave, then test it
VariFlask suggests checkout and cart tests for your store, runs them with a goal you can actually finish, and shows you each step of the funnel. Paste your URL to see it on a real page.
Get started free →