To net $100 after a 2.9% plus $0.30 processing fee, you charge $103.30. Not $102.90. The 40 cents is the fee charging you a fee on the fee, and it is the reason most small businesses that "add 3% for cards" still watch their margins bleed. Learning how to add credit card processing fees to your prices without losing margin is really two problems: the arithmetic of grossing up correctly, and the strategic choice of whether the customer should ever see the fee at all.
The gross-up formula most people get wrong
The naive move is to add the fee percentage to the price. Target $100, fee 2.9%, charge $102.90. But the processor takes 2.9% of $102.90, which is $2.98, plus $0.30, for a total fee of $3.28. You net $99.62. You are short 38 cents on every transaction, and on a thousand transactions a month that is $380 walking out the door from a rounding error in your pricing logic.
The correct formula grosses up for the fee-on-fee effect: price equals (target net plus the fixed per-transaction fee) divided by (1 minus the percentage rate). At 2.9% plus $0.30, targeting a $100 net: ($100 + $0.30) / (1 - 0.029) = $100.30 / 0.971 = $103.30. Verify it: 2.9% of $103.30 is $3.00, plus $0.30 is $3.30, and $103.30 minus $3.30 is exactly $100. This is the same margin-versus-markup trap this site exists to explain, wearing a different hat: adding a percentage to cost is markup thinking, and it always comes up short of the margin you wanted.
How to add credit card processing fees to your prices without losing margin: the strategy
Before the arithmetic, notice how much the fee actually costs you, because it depends on your margin more than your volume. Take a $100 sale with a $3.20 fee. On a product with a 40% margin ($60 cost, $40 profit), the fee leaves $36.80 of profit on $96.80 net, a margin of about 38%. The damage is 2 points. On a product with a 10% margin ($90 cost, $10 profit), the same fee leaves $6.80 on $96.80, a margin of about 7%. The damage is 3 points off a base less than a third the size, nearly a third of the profit gone. Thin-margin businesses do not have a fee annoyance. They have a fee emergency.
That math drives the strategy choice, and there are three real options.
Absorb it into the base price. Raise every price by the grossed-up amount and never mention the fee. This is my default recommendation for low-ticket, high-volume businesses, and it is not close. A visible fee at checkout is friction at the exact moment the customer decides, and the revenue you lose to abandoned carts and price-comparison shopping almost always exceeds the fee you were trying to recover. You are moving your margin problem to the checkout counter and asking the customer to solve it.
Run a cash discount program. Post the card price as the standard price and discount it for cash, check, or ACH. Done correctly this complies with card network rules, because you are discounting the standard price rather than penalizing the card. Gas stations have run this playbook for decades. It works best where customers already expect to choose a payment method at the counter.
Add a surcharge. Tack the fee onto card transactions as a line item, disclosed before checkout. This is legal in most states with conditions: clear disclosure, network caps on the percentage, and no surcharges on debit or prepaid cards. A few states still restrict the practice, so check yours. Surcharging fits large-ticket and B2B sales, where the fee is material in dollars and buyers are used to line-item pricing. On a $40 retail sale it reads as petty; on a $4,000 invoice it reads as accounting.
Whichever route you take, two housekeeping moves pay for themselves. First, ask your processor about interchange-plus pricing instead of flat rate; flat rate is simple and usually more expensive once you have real volume, and the markup over interchange is negotiable. Second, settle your batches daily. Letting transactions sit can trigger downgraded interchange rates from the card networks, which is a fee increase you chose by doing nothing.
Most businesses should just raise prices and stop talking about the fee. The fee is a cost like rent and packaging. You would not print "rent surcharge" on the receipt. Price the product at $103.30, net your $100, and spend the energy you saved arguing about surcharges on something customers actually notice.
Frequently asked questions
How much should I add to my prices to cover credit card processing fees?
Use the gross-up formula: (target net amount + fixed per-transaction fee) divided by (1 - percentage rate). At 2.9% + $0.30, netting $100 needs a $103.30 price, not $102.90. Simply adding the percentage underprices because the fee applies to the higher price too.
Is it legal to charge customers a credit card surcharge?
Generally yes in most states, with conditions: the surcharge must be disclosed before checkout, it is capped by card network rules, and debit cards and prepaid cards cannot be surcharged. A few states still restrict surcharging, so verify your state's current rules.
What is the difference between a surcharge and a cash discount program?
A surcharge adds a fee when the customer pays by card. A cash discount program posts the card price as the standard price and reduces it for customers who pay cash or another low-cost method. Both shift the cost to card users, but the cash discount frames it as a reward rather than a penalty.
Should a small business absorb credit card fees or pass them on?
Absorb them into base pricing for low-ticket, high-volume sales where checkout friction costs more than the fee. Consider surcharges or cash discounts for large-ticket or B2B sales where the fee is material and customers expect line-item pricing.
Do credit card fees reduce my profit margin?
Yes, unless they are priced in. A 2.9% + $0.30 fee on a $100 sale costs $3.20. On a 40% margin product that trims margin to about 38%; on a 10% margin product it cuts margin to about 7%. Thin margins feel the fee far more than fat ones.
Enjoying these guides? Get new free tools and strategy notes by email.