So this is like a leaning-against-the-wall ladder-style arrangement?
14-18" inches (measured horizontally, not taking into account any vertical difference) is good; more is better. You can do less but some chickens will get pooed on sometimes.
Good luck, have fun,
Pat