Does not hold 40 pairs of shoes.I wear size 6.5 women’s and it holds 32 pairs of shoes. Maybe if you have very narrow shoes it will hold 40.