The Tsiolkovsky rocket equation gives a general formula, applicable to any time of rocket that shoots exhaust out the back to accelerate in the forward direction, which can tell you the ratio of initial mass including fuel to final mass once fuel has been expended, given the values of the "effective exhaust velocity" (given for different types real and of hypothetical rockets here and here), the acceleration rate during the rocket burn, and the change in the rocket's velocity between the beginning and end of the burn. In this answerthis answer I did some substitutions and rearrangements on the relativistic version of the Tsiokolvsky rocket equation, to get a formula that would give you the initial/final mass ratio expressed in terms of effective exhaust velocity V, acceleration A, and distance traveled D between the beginning and end of the rocket burn (expressed in units where the speed of light is 1, like seconds and light-seconds):