Pick supply voltage, LED forward voltage (or a color preset), and desired current. Get the exact resistor plus the nearest standard part.
Forward voltage (Vf) varies by LED color and brand. Always check the datasheet, but typical values:
Most 5mm indicator LEDs run happily at 10–20 mA. High-brightness LEDs may go to 30 mA or more.