Ocean front property can often be pricey, but there's one way to get that dream beach house at a discount -- just look at the foreclosure listings.

Some foreclosed properties in American beach towns are averaging discounts of up to 45 percent, according to real estate site RealtyTrac (h/t: DSNews). RealtyTrac looked at its foreclosure sales data in some well-known seaside towns to find which are offering the best beachy bang for your buck.

Florida and South Carolina count among the states with the most beach towns offering great deals on foreclosed properties. While each state is known for having great beaches in cities like Vero Beach and Charleston, they are also among the states with the most properties in foreclosure, according to a February report by CoreLogic, 24/7 Wall St. reports.

The housing bubble burst may have pushed some to unload their beach and vacation homes, including some celebrities, but it appears that baby boomers are willing to dip their toes in the ocean once again. Baby boomers are increasingly purchasing vacation homes and choosing them in towns closer to home with the intention of ultimately turning them into primary residences, according to the National Association of Realtors.

Check out the beach towns offering the best deals on foreclosed properties:

Loading Slideshow...
  • 10. Santa Cruz, CA

    <strong>Average foreclosure discount:</strong> 28.17 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 326 <br> <strong>Average sales price:</strong> $355,604<br>

  • 9. Barnstable, MA (Cape Cod)

    <strong>Average foreclosure discount:</strong> 30.34 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 151<br> <strong>Average sales price:</strong> $237,405<br>

  • 8. Honolulu, HI

    <strong>Average foreclosure discount:</strong> 30.56 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 140<br> <strong>Average sales price:</strong> $345,799<br>

  • 7. Atlantic City, NJ

    <strong>Average foreclosure discount:</strong> 30.83 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 114<br> <strong>Average sales price:</strong> $161,819<br>

  • 6. Hilton Head Island, SC

    <strong>Average foreclosure discount:</strong> 31.14 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 159<br> <strong>Average sales price:</strong> $202,454<br>

  • 5. Charleston, SC

    <strong>Average foreclosure discount:</strong> 34.42 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 530<br> <strong>Average sales price:</strong> $159,065<br>

  • 4. Santa Barbara, CA

    <strong>Average foreclosure discount:</strong> 38.80 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 537<br> <strong>Average sales price:</strong> $274,077<br>

  • 3. Naples-Marco Island, FL

    <strong>Average foreclosure discount:</strong> 40.43 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 564<br> <strong>Average sales price:</strong> $156,148 <br>

  • 2. Corpus Christi, TX

    <strong>Average foreclosure discount:</strong> 44.38 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 152<br> <strong>Average sales price:</strong> $78,851<br>

  • 1. Sebastian-Vero Beach, FL

    <strong>Average foreclosure discount:</strong> 45.11 percent<br> <strong>Q1 2012 foreclosure sales:</strong> 227<br> <strong>Average sales price:</strong> $93,188<br>