Sales tax is generally calculated by taking the sales tax rate and multiplying by the total amount of a sale. The tricky part of this is knowing what the sales tax rate is. With so much variation depending on location, it is a good idea to rely on a comprehensive and frequently updated sales tax database and calculator.