The X-ray source known as GRS1915+105 belongs to a group dubbed 'microquasars'. These objects are binary systems which sporadically eject matter at speeds that appear superluminal, as is the case for some quasars. GRS1915+105 is also one of only two known binary sources thought to contain a maximally spinning black hole. Determining the basic parameters of GRS195+105, such as the masses of the components, will help us to understand jet formation in this system, as well as providing links to other objects which exhibit jets. Using X-ray data, indirect methods have previously been used to infer a variety of masses for the accreting compact object in the range 10-30 solar masses (M middle dot in circle). Here we report a direct measurement of the orbital period and mass function of GRS1915+105, which allow us to deduce a mass of 14 +/- 4 M middle dot in circle for the black hole. Black holes with masses >5-7 M middle dot in circle challenge the conventional picture of black-hole formation in binary systems. Based on the mass estimate, we interpret the distinct X-ray variability of GRS1915+105 as arising from instabilities in an accretion disk that is dominated by radiation pressure, and radiating near the Eddington limit (the point where radiation pressure supports matter against gravity). Also, the mass estimate constrains most models which relate observable X-ray properties to the spin of black holes in microquasars.