The great unavoidable factor: taxes. If you're a retailer — and even as a wholesaler in some jurisdictions — you will need to master the management of tax rates and rules in your Magento store. We've had to deal with this issue on many other platforms, and while some do provide some cool features, none, in our opinion, offer as much flexibility for taxes as Magento; especially when it comes to VAT taxes.
You'll appreciate as you go through this section, that taxes can be quite complicated. Before configuring taxes in your online store, you should consult your tax professional. Making errors in taxes can not only present legal issues for your business, but also erode consumer confidence if the customers feel they're being inappropriately taxed on purchases.
Taxes are applied to products based on assigned tax classes. Tax classes are combined with tax zones and rates to create tax rules. Tax rules are what are applied to each product or shopping cart to determine the amount of tax charged in a transaction.
Here's a flow chart on how Magento calculates sales taxes based on a tax rule:

There are two types of tax classes in Magento:
Tax rules are created based on jurisdiction and rate: creating a zone for a country, state, and/or zip code, and a percentage used to calculate the tax.
To illustrate, let's review a tax rule included in the default installation for Magento 2:

Let's now take a look at the layout of a tax rule:

A nexus is generally considered if you have an active business in a particular state or locality. For instance, if your office is in Texas and you ship your products from a warehouse in Illinois, then, for taxing purposes, you're considered to have a nexus in Texas and Illinois. Therefore, as it stands at this moment, you are required to collect sales tax on any sales to buyers in Texas and Illinois. However, there are efforts in the United States Congress to radically change taxing laws on online sales transactions. Some state legislatures are also grappling with this issue. We know you're used to hearing this, but you do need to consult a tax professional to make sure you're correctly charging sales tax.
A leader in e-commerce sale tax is TaxJar (https://www.taxjar.com), a company that can provide integration with your store to precisely calculate required sales taxes and help with reporting to the various taxing jurisdictions. Using a tool such as TaxJar could greatly reduce your tax configuration time, while providing greater sales tax accuracy.
You can add or edit tax rates here or under Stores | Tax Zones and Rates. Let's edit the California tax rate here to understand the process:

To the right of the US-CA-*-Rate 1 item name, when you hover your mouse over the item, you will see a pencil icon. Click this to reveal the tax rate modal dialogue.

Let's have a look at the various fields here:

You can use the same field specifics for creating a new tax rate by clicking Add New Tax Rate at the bottom of the Tax Rate list field.
To view the remaining fields, expand the Additional Settings section.

While you can't import tax rules, you can import tax rates, which may be a time saver, particularly where you have multiple taxing jurisdictions to whom you have to report tax collections.
As with many importing capabilities in Magento 2, the easiest way to begin is by exporting the current tax rules and expanding on the CSV file, then importing your changes. To import tax rates, view any tax rule. At the bottom of the screen are buttons to import and export tax rates. Export the current tax rate file, add or edit your rates, then re-import.
In some countries, goods and services are taxed in a means similar to sales tax, but calculated and managed differently. These Value-Added Taxes (VAT) are made even more complex due to varying rates among countries, different rules for registration, and rules for taxation based on the type of product or service sold.
As usual, we can't begin to counsel you on taxes. VAT rules can be complicated, especially for non-EU countries selling into EU countries. We highly suggest you consult with your tax professionals. If you doubt the complexity of EU VAT taxes, see http://goo.gl/y07Pb.
The VAT process in Magento involves three basic components — the needs of them are based on your location:
In Magento, VAT is charged if both the seller and customer are located in the same EU country. If both are EU-registered businesses, no VAT tax is collected if the seller and customer are in different countries.
When selling to consumers in EU countries, the amount of VAT collected is based on what country the seller is located (if the seller is an EU country). These are called intra-EU sales.
One exception (there's always one, yes?) is that when selling digital goods (for example, music, software), the VAT rate to be charged is that of the destination country, not the source country.
The key to effectively managing this complexity is the creation of multiple customer groups that can be automatically assigned during the checkout or registration process based on the VAT ID validation of the buyer.
It would be so easy for us to stop here, call it a day, and leave VAT tax configuration to your imagination. After all, we can play the "too complex for a book" card, correct?
The truth is that VAT taxes can be quite complex. If you're an EU business or exporting to the EU countries, you already understand the complexities. However, we do want you to get the most from Magento 2 and demonstrate its incredible ability to fulfill your tax calculation needs.
To that end — and perhaps the best way to demonstrate the process — we're going to set up VAT taxes as if we were a business based in France (we love Paris!).
Since we're considered, in this example, as an EU member country, we will need to provide for VAT ID validation of our customers and classify them accordingly.
Earlier in this chapter, we added four additional customer groups, specifically for VAT tax use. If we look under Stores | Customer Groups, based on our example Magento install, we should see the following:

Next, we want to create the product classes that we will need for applying the appropriate French VAT tax rates. France groups products into four rate categories, each of which should have a different product class added for taxing purposes:
We now have to consider that for customers living in other EU countries, we will charge our VAT tax rate on purchases of physical products, but charge the buyer's VAT tax rate for digital or virtual purchases.
That means that if we are selling digital products (for example, music, software, and so on) to other EU customers, we have to charge VAT tax at the rate in their country, not France. In order to do that, we have to add tax rates in Magento for every other EU country. As you can imagine, setting up all those tax rates and rules can be quite time consuming.
We have created a CSV file of all EU countries with their standard VAT tax rates (as of the time of writing). You can use this to upload the tax rates to your Magento 2 install.
For France, we need to create the four tax rates described above. After adding these under Stores | Tax Zones and Rates in our Magento 2 backend, the list of tax rates looks like this:

Our next chore is to create the product tax classes that are needed to separate our products according to the taxes we have to apply. For our France-based example, we will need five product tax classes:
While you may not currently sell products that fall into all of these classes, you may want to go ahead and set them up so they're available to you.
Remember, to create additional product tax classes; just click to edit any tax rule, expand Additional Settings, and add your new classes. After adding the above classes, this section will look like the following screenshot:

With the preceding preparation completed, we can now create the tax rules that will be used to calculate VAT taxes on purchases. We need to create the following tax rules to meet our needs as a French online business:
Once entered into our Magento 2 example, our Tax Rules screen would include the following:

The final piece is to configure your Customer Configuration so that customers are automatically assigned to the proper customer group based on their VAT ID validation. To do that, go to Stores | Configuration | Customers | Customer Configuration and expand the Create New Account Options panel. Some of these settings are done at the global, website, and store view levels, so pay close attention to your store view scope setting in the upper right-hand part of the screen. For our example, we only want to automatically assign customers who visit our French store. Therefore, we will only enable this feature at the Sportswear French View.
Once you have changed to the appropriate store view level, the key fields to configure are:
As with any store configuration, especially one as complex as VAT taxes, we highly recommend that you test your configurations thoroughly.