To what others have said, I would add the following:-
1. Beam width will generally depend upon one or more of the following factors:
a. Architectural requirements, mostly requiring that beam width should not be more than the thickness of wall, to be provided above or below the beam.
b. Required number of rebar layers, which in turn depend upon beam span & loading to be supported. I personally limit maximum number of rebar layers to 3, and mostly to 2.
c. Seismic requirements imposed by the adopted design code. For example, ACI 318-08 requires a minimum beam width of 10 inches, for structures located within seismic zones 3 & 4 (corresponding to seismic design categories D, E & F)
d. General beam detailing requirements of adopted design code.
For example, according to ACI 318 a minimum beam width of 8" is required for an RC beam reinforced in flexure with 2-#8 bars & #4 stirrups. [Refer to Table A.7 in Appendix A of 'Design of Concrete Structures', 14th edition, by Nilson et al. 2010]
2. Therefore, the actual beam width would depend upon which of the above mentioned conditions governs in the case under reference.
Regards.