any formulas to work out the section of the beam from the stress on it.
Yes. It is called engineering. More information in the question would be helpful.
If you specify the forces a beam must handle, the section of the beam can be synthesised.
Separate names with a comma.