CHARLOTTE, N.C. ( TheStreet) -- Bank of America ( BAC) is expected Wednesday to eliminate overdraft fees on purchases made with debit cards.

Customers, however, will be denied from making purchases if they have insufficient funds in their accounts.

ATM customers can get their money but only after they agree to pay the $35 overdraft fee.

The policy begins for new customers on June 19. For existing debit-card holders the plans take effect in August.

Bank of America's move is an effort to get in ahead of new banking regulations that begin July 1 that will prohibit banks from charging these fees without first gaining permission from the customer.

Bank of America's action is expected to cost the bank millions of dollars in revenue, the Wall Street Journal reports. A spokeswoman declined to provide specifics.

-- Reported by Joseph Woelfel in New York.

Follow TheStreet.com on Twitter and become a fan on Facebook.

More from Stocks

Finding Stocks Right for You: Cramer's 'Mad Money' Recap (Friday 8/25/18)

Finding Stocks Right for You: Cramer's 'Mad Money' Recap (Friday 8/25/18)

Flashback Friday: Amazon, Chip Stocks, Memorial Day

Flashback Friday: Amazon, Chip Stocks, Memorial Day

Week Ahead: Wall Street Looks to Jobs Report as North Korea Meeting Less Certain

Week Ahead: Wall Street Looks to Jobs Report as North Korea Meeting Less Certain

Dow and S&P 500 Decline, Energy Shares Fall as U.S. Crude Oil Slides 4%

Dow and S&P 500 Decline, Energy Shares Fall as U.S. Crude Oil Slides 4%

Replay: Jim Cramer on the Markets, 10-Year Yield, Oil Prices and Foot Locker

Replay: Jim Cramer on the Markets, 10-Year Yield, Oil Prices and Foot Locker