First, estimate which size beam you would like to use...
Commercial Lumber Sizes Table
Then, determine the Area Moment of Inertia
Area Moment of Inertia Rectangle
Modulus of Elasticity for Wood
Structural Wood Lumber Engineering Data
Put all the data into the engineering beam deflection calculator that best represents your loading configuration.
Beam, Stress and deflection equations and calculators