What size pipe for a pull-up bar?

The right size bar is important.

you planning to do both chin ups and pull ups? chin ups the palms facing in works your biceps and pecs. pull ups with palms out works the back muscles.