A good standard is 4-5 feet minimum to ensure that water doesn’t cause damage to your foundation. If your landscaping is pitched towards your foundation, you will want to get it further away or consider moving your downspout to a new location