Pick your type of wood, grade, spacing and loads and this little calculator will tell you how far it will span.
http://www.awc.org/calculators/span/calc/timbercalcstyle.asp (http://www.awc.org/calculators/span/calc/timbercalcstyle.asp)
Set up for the 2x joists and rafters commonly used in floors and roofs.