There is some physics involved here. But I don’t know the answer or how to get it. The install might be better if your upright is mounted to a base plate. Add to that, an I-beam might be stronger depending on what you can find.
I would think that you want to go at least 24 inches deep with the...