Fees are added to the amount entered to arrive at the total for the order. For example, if you enter $100 USD as the amount of BTC to buy, and the fee is 1.49%, your total will be $101.49. That total will be charged to your payment method and you will receive $100 worth of BTC.
Coinbase fees are subtracted from the amount entered to arrive at the total. For example, if you enter $100 USD as the amount of BTC to sell, and the fee is 1.49%, your total will be $98.51. $100 Worth of BTC will be removed from your Coinbase account and $98.51 will be credited to the selected payment method.
The total amount of the transaction denominated in both the digital currency and your local currency, as well as the fees being charged, will always be displayed to you on the confirmation screen.
For specific fees based on your location and payment method used, please see: Buy/Sell / Deposit & Withdraw Fees