Basket Math
Compare 12- and 18-Pack Egg Prices
At the example prices of $4.80 for 12 and $6.75 for 18, the dozen costs $1.95 less at checkout when you need 12 eggs. The 18-pack costs 37.5 cents per egg versus 40 cents for the dozen. Change the prices and how many eggs you need.
Compare package pricesOpen Basket MathHow to find the break-even carton price
Compare pack sizes and promotions for the amount you actually need.
No CoolCode account · No ads · How CoolCode works
Your prices stay here.No account, store lookup or upload. Save only when you choose.
Your shopping target
How much do you need?
Compare alternatives for one product at a time.
Enter the rate you want to estimate. Product tax, coupon eligibility, deposits and store rounding can vary; this does not determine the tax legally payable.
Enough for your target
Compare the whole purchase
Lowest unit price can mean buying more. The checkout total includes the quantity, promotion, coupon and tax assumptions above.
Keep your comparison
Nothing is saved automatically. An exported JSON file preserves your inputs and can be reopened here.
How the calculation treats promotions
Regular price: each retail pack costs the price you entered. A multipack is one retail pack; enter its inner-unit count and the contents of each inner unit.
X packs for a total: complete groups receive the bundle total. Leftover packs cost the regular price. Each when buying X+: every pack receives the qualifying per-pack price once the threshold is met.
Buy X, get Y free: complete groups contain X paid packs and Y free packs. Add the free packs to the cart; they count toward your target. Any incomplete group charges for up to X packs. A note shows extra free packs available at the same outlay.
Coupons: per-pack coupons apply to paid packs (all packs in a priced bundle, excluding free BOGO packs). A purchase coupon applies once to this alternative's purchase. Per-pack coupons stop at each pack's price; complete bundles cap their combined coupons at the bundle price. Unused coupon value cannot reduce other packs. These rules assume coupons can be combined with the selected offer. Limits, member pricing and mixed-product offers are not inferred.
Rounding and units: entered prices use exact cents; conversions and promotion math use exact fractions. Estimated tax is rounded half-up once on the option's total. Unit prices are displayed to four decimal places and ranked using unrounded values. Weight ounces are avoirdupois; they are not fluid ounces. Weight and volume cannot be converted without a density.
Extra quantity is not automatically waste. The comparison assumes you can use everything bought; consider shelf life, freezer space and whether you would buy it without the offer.
Your actual purchases · Private history
Track package size and price over time
Transcribe purchases from your receipts. Use the same comparison group for the same product and variant, even if its barcode changes. These are your observations, not a market-wide shrinkflation claim.
Earliest to latest recorded purchase
History stays in this tab until you explicitly save or export it. Imports from Basket Math and Label Compare use the same format. Prices with different tax bases or quantities of different dimensions are not compared. A smaller package can reflect a different format or promotion; verify your records.