As a general rule a lot of folks like to go with the 3/4 rule.
The tank is 3/4 the length of the snake.
Of course you can't always get exact, and you need to plan for the future. This can be offset with a larger tank with more clutter and plenty of the correct sized hides.