The formula to find the gear inches for your bike is simple. Divide the number of teeth in the front sprocket, or freewheel, by the number of teeth in the rear sprocket, or freewheel, and then multiply by the diameter of the rear wheel.