This article presents an optimized approach to battery sizing and economic dispatch in wind-powered microgrids. The primary focus is on integrating battery depth of discharge (DoD) constraints to prolong battery life and ensure cost-effective energy storage management. Because of the intermittent nature of wind energy, wind-powered microgrids require sophisticated energy storage systems to ensure stable operation. This study develops a metaheuristic optimization method that balances power supply, battery lifespan, and economic dispatch in a microgrid. The proposed method optimizes both battery size and dispatch strategy while considering wind energy variability and the impact of DoD on battery lifespan. Case studies conducted on a wind-powered microgrid under varying load conditions show that the developed approach achieves a 40 to 50% reduction in operating costs and cost of electricity (CoE) compared to other approaches. The results also reveal that the inclusion of DoD constraints enhances battery lifespan. The proposed method offers a practical solution for improving the economic and operational efficiency of wind-powered microgrids, providing valuable understanding for energy planners and grid operators in renewable energy systems.