Introduction

Welcome back to Shopping and Spending with Percentages! We have arrived at the sixth and final lesson of this course. Over the previous five lessons, we built up individual skills: calculating discounts, computing sales tax, figuring tips, estimating mentally, and working with markups. Now it is time to combine two of those skills into a single, realistic transaction: applying a discount and then calculating sales tax on the same purchase. This is exactly what happens at checkout when we grab a sale item and the register still adds tax on top.

Two Percentages, Two Different Bases

As you may recall from Lessons 1 and 2, a discount is a percentage taken off a price, while sales tax is a percentage added on. When both appear in the same transaction, the key question becomes: which amount does each percentage apply to?

The rule is straightforward:

  • The discount is applied to the original price.
  • The sales tax is applied to the discounted price, not the original.

This makes sense because tax is charged on what we actually pay for the item after the markdown, not on the sticker price. Getting the base wrong at either step will throw off the final total.

The Two-Step Process
Worked Example: A Pair of Sneakers
Another Example: A Decimal Tax Rate
Watch Out: Taxing the Wrong Base
The Combined Multiplier Shortcut
Conclusion and Next Steps

Combining a discount and sales tax is a two-step process where each percentage applies to its own base. First, we reduce the original price by the discount. Then, we calculate sales tax on that lower, discounted price — never on the original. Keeping these bases straight is the single most important skill in discount-then-tax problems, and it mirrors real checkout behavior everywhere from clothing stores to online carts.

Up next, you will put this skill to work in a set of hands-on exercises. You will identify which base each percentage applies to, complete guided calculations step by step, solve full discount-then-tax problems on your own, and walk through a realistic online checkout scenario explaining your reasoning. Let's head to practice!

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal