# Specify tax codes and behavior on pricing plans

Assign tax codes and tax behavior on pricing plans to automatically calculate tax.

*Private preview*

Pricing plans are currently in private preview and could change in functionality and integration path before they’re generally available to all Stripe users. Sign up here to join the private preview.

## Tax codes

Stripe Tax uses product tax codes to associate pricing plan components with their applicable tax rates, which might be lower or higher in different cities or countries. Assign each of your products a tax code to automatically apply the rate and other taxability rules.

If a pricing plan component doesn’t fit any of the specific codes, use one of the codes with “General” in its name to apply the standard rate of the jurisdiction. See our [list of available tax codes](/tax/tax-codes).

### Preset tax codes

When you activate Stripe Tax you can set the preset tax code in the Tax settings in the Dashboard. We use the preset if you don’t explicitly specify a `tax_code` on your rate card. As you process payments, we also use the preset tax code to display the tax thresholds you might be approaching or have exceeded, in the Threshold monitoring section of your tax settings.

## Set a tax code on a pricing plan

### Dashboard

1. Go to **Products** in the Stripe Dashboard.
2. Click **+ Add product**.
3. Enter your product details.
4. In the **Tax category** dropdown, search for any available tax code. If you don’t specify a code, Stripe Tax uses the preset tax code defined in your Tax Settings.
5. Click **Save product**.

### API

When you create pricing plans in the Dashboard you can set your tax code in the dropdown by searching for any available tax code. If you don’t, Stripe Tax uses the preset tax code defined in your Tax Settings. If a product could fit multiple codes, for example, a SaaS product used for personal or business use depending on the type of customer, we recommend setting the tax code on the **Price** level.