@KPeter’s approach is a great solution and one that many of us use.
Here is another solution which is a more simplistic approach and one I use occasionally.
You’ll notice that I create my tubular structures by chamfering an extruded box section. This is a favourite method of mine.