It depends on the subject’s height & weight.
Mostly weight. There are hangman drop charts dating back to the early 1800s, I believe. The goal is a clean snap without strangling or pulling their head off…
ETA… missed the link in prior post. That’s it.