Measure the patio or deck it will cover: the width along the house or the front, and how far out it reaches. Then drag the pergola or tap a size on the model to type it.
Post length
The posts stand on your patio; cut them shorter on site if you need to.