---
title: "How is sales tax calculated? Rates, sourcing, taxability and rounding"
description: "How sales tax is calculated: state plus local rates, origin vs destination sourcing, what’s taxable (SaaS varies) and rounding per line or per invoice."
canonical: "https://lopifi.com/startups/how-sales-tax-is-calculated"
---

# How is sales tax calculated? Rates, sourcing, taxability and rounding

> How sales tax is calculated: state plus local rates, origin vs destination sourcing, what’s taxable (SaaS varies) and rounding per line or per invoice.

Source: https://lopifi.com/startups/how-sales-tax-is-calculated
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Topic:** Sales tax
- **Reading time:** 5 min
- **Updated:** October 13, 2026

Sales tax is price times rate, and the state (sometimes the city too) defines every piece of that: which location’s rate applies, whether the item is taxable at all, how the local rates stack and how the result rounds. Miss one on every invoice in a nexus state and the difference comes out of your margin.

## The rate is a stack

Forty-five states and the District of Columbia have a statewide sales tax, and most let counties, cities and special districts (transit, stadium, hospital) add their own rates. The rate on a sale is the sum for that exact location, not the state rate. California’s statewide rate of 7.25% is the highest base rate, but local add-ons push combined rates higher in many states with lower base rates.

The local layers add up. The Tax Foundation’s mid-2026 figures put the population-weighted national average combined rate at 7.53%, with Louisiana the highest average at 10.13%, followed by Tennessee, Washington, Arkansas and Alabama. Rates can differ across a street, because district boundaries don’t follow ZIP codes. Sales tax software looks rates up by full address for that reason, and a ZIP-code rate table is the most common source of small, persistent errors.

## Sourcing: origin or destination

Sourcing decides whose rate applies: where the buyer receives the item (destination) or where the seller is (origin). Most states are destination-based. A minority, Texas among them, use origin sourcing for sales by sellers located in the state, and California is a hybrid: state, county and city taxes follow the seller’s location, while district taxes follow the destination.

For a startup selling online it’s simpler. A remote seller, with nexus in a state but no location there, generally applies the destination rate at the customer’s address. Origin rules mostly matter inside a seller’s home state. States source services and digital products by where they’re used or received, so you need the customer’s address on every sale even when nothing ships.

## Taxable or exempt

Sales tax was built for tangible goods, and each state draws its own lines from there. Groceries, prescription drugs and clothing are commonly exempt or taxed at reduced rates. Services are mostly exempt, with long lists of exceptions. Digital products are where states differ most.

SaaS is the one that catches startups. Many states don’t tax it. New York taxes it as prewritten software regardless of how it’s delivered. Washington taxes it as a digital automated service. Texas taxes it as a data processing service, with 20% of the charge exempt by statute, so on a $1,000 subscription the tax applies to $800. Some tax SaaS only when sold to businesses, or only in certain cities. A bundle of taxable and non-taxable parts may be taxed in full unless the parts are priced separately.

Exemptions also depend on the buyer. A reseller, nonprofit or government agency may be exempt, but only with a valid exemption certificate on file. Without one, the tax you didn’t collect is yours.

## Rounding: per line or per invoice

Tax is computed past the cent and then rounded. States that follow the Streamlined Sales and Use Tax Agreement compute to the third decimal place and round up to the next cent when the third digit is greater than four, and let the seller choose to compute tax per item or per invoice. Other states have their own rules, but most offer the same choice.

The choice changes the answer. Take three items at $4.99 with an 8.25% rate: per line, each item’s tax is $0.411675, rounded to $0.41, for $1.23. Per invoice, $14.97 at 8.25% is $1.235025, rounded to $1.24. A cent per invoice, over a year, becomes a gap between the tax you collected and the tax the return computes. Pick one method and make sure your billing system and tax engine both use it.

## Discounts, shipping and other adjustments

The taxable price isn’t always the sticker price:

- A discount you give reduces the taxable price in most states. A manufacturer’s coupon reimbursed by a third party often doesn’t.
- Shipping and handling is taxable in some states, exempt when separately stated in others, and split in a few.
- Refunds return the tax with the price; the tax credit belongs on the return for the period of the refund.
- Bad debts on taxable sales can usually be deducted on a later return, under each state’s rules.

## What a receipt or invoice must show

Most states require the tax to be stated separately, and the invoice should show enough to prove the calculation: the seller’s name, the date, each item and whether it’s taxable, the taxable subtotal, the tax amount and the total. Many states also expect the rate or the jurisdiction, and a few allow tax-included pricing in limited settings. If you charge tax in a state, keep invoices that show it. If you don’t, keep the reason: an exemption certificate, a non-taxable product, a non-nexus state.

Buyers have the mirror obligation. When a business buys something taxable for its own use and the seller didn’t charge tax, the buyer usually owes use tax at the same rate. For startups the common case is software from an out-of-state vendor that doesn’t collect.

## In the books

Tax collected is never revenue. It goes to sales tax payable, one account per state if you file in several, and comes out when you pay the return. At each monthly close, its balance should equal the tax on the returns about to be filed. A drifting balance means a rate, rounding method or refund flowed differently through billing and the return.

## Common questions

### How do you calculate sales tax on an invoice?

Taxable price times the combined rate for the place the sale is sourced to: the state rate plus any county, city and special district rates. For most sales shipped or delivered to a customer that is the customer’s address. The result is rounded to the cent under the state’s rounding rule.

### Is software as a service taxable?

In some states. New York, Washington and Texas all tax it, each under a different definition, while many states don’t tax it at all and a few tax it only for business buyers or only in certain cities. Check each state where you have nexus.

### Is shipping subject to sales tax?

Sometimes. Some states tax it when the item shipped is taxable, some exempt a separately stated delivery charge, and some tax handling but not postage. If you charge shipping, it’s one more per-state setting.

### What if a customer says they’re tax-exempt?

Get a valid exemption certificate from the buyer (a resale certificate, or a nonprofit or government exemption) at or before the sale, and keep it. Without one, the state generally treats the sale as taxable and the uncollected tax as yours.

### Where does collected sales tax go in the books?

In sales tax payable, a liability account in the chart of accounts, never in revenue. Each return should tie to the change in that account, and the balance should be near zero after you pay; reconcile it to the filed returns every month.

## Terms in this guide

Each one has its own page in the founder glossary. Hover for the short version, or open the full entry.

- [Sales tax nexus](https://lopifi.com/md/accounting/sales-tax-nexus) — Tax · Wayfair, 2018
- [Monthly close](https://lopifi.com/md/accounting/close) — Convention
- [Chart of accounts](https://lopifi.com/md/accounting/chart-of-accounts) — Convention
- [Reconciliation](https://lopifi.com/md/accounting/reconciliation) — Control

## Keep going

From here: a free tool to try it on your own numbers.

- [VAT / sales tax](https://lopifi.com/md/tools/tax) (Free tool): Add tax to a net price or back it out of a gross one, and the parts still add up.
- [Trial balance checker](https://lopifi.com/md/tools/tb) (Free tool): Check a trial balance ties, flag wrong-side balances and see what it rolls up to.
- [Recording the month › Money that passes through](https://lopifi.com/md/learn/recording-the-month/money-that-passes-through) (Accounting · Lesson 5 · 8 min): Three September entries move money that isn't Northwind's to keep: the state's sales tax, the Treasury's withholding and the owners' dividend.

## More founder guides

- [Registering in a new state: remote hires and nexus](https://lopifi.com/md/startups/registering-in-a-new-state) (New state): A remote hire or nexus in a new state means foreign qualification, payroll tax accounts and maybe a sales tax permit. What to register, in what order.
- [States without sales tax: the five, and what it means](https://lopifi.com/md/startups/states-without-sales-tax) (No sales tax): Alaska, Delaware, Montana, New Hampshire and Oregon have no statewide sales tax. What that means for sellers, local taxes and gross receipts taxes.
- [Form 1120: what to give your tax preparer, and when](https://lopifi.com/md/startups/form-1120-what-to-give-your-tax-preparer) (Form 1120): What a startup hands its tax preparer for Form 1120: closed books, a balance sheet that ties to Schedule L, book-to-tax items, ownership and 1099s.
- [Startup tax deadlines by month for a C-corp](https://lopifi.com/md/startups/startup-tax-deadlines-by-month) (Tax calendar): Federal tax deadlines for a calendar-year C-corp, month by month: W-2s, 1099s, Form 941, Form 1120, estimated taxes and Delaware franchise tax.

*General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
