If it's a switching application, then the value is not that important, just add a bit of "overdrive" current. Like, two-three times more base current than, say, minimum beta requires. If it's an amplifier, well, then things become more complicated, but in any case a good bjt circuit should work in with a wide range of betas.
It's also easy to breadboard and test it.
Typically, using bipolar transistors in a simple LED driver or relay driver circuit, the transistor is over-driven with excess base current to ensure that the transistor is fully turned on (saturated) to achieve the minimum possible voltage drop across the transistor (VCEsat). The overdrive of the base current is usually determined as a ratio; Ic=Ib*20 for small signal transistors or Ic=Ib*10 for larger transistors. If you check your transistor data sheet it will typically include various specification figures or graphs for the saturated switching parameters e.g. Vce(sat), Vbe(sat) at specified collector currents and a particular Ic/Ib ratio.
Knowing your required Ic you can quickly determine the Ib from the specified Ic/Ib ratio. The base resistor can then be easily calculated Rb <= (Vin - Vbesat)/Ib.
Yes, the base current is often selected to drive the transistor hard on, into saturation, but that's normally unnecessary. Quite often, a considerable power saving can be made by not driving it so hard. This of course has to be ballanced with the the slightly higher voltage drop across the transistor. For example, the BC337 is specified with a minimum h
FE of 60, when V
CE = 1V & I
C =300mA and 100, when I
C = 100mA, so I normally use those figures when choosing a base resistor, for that transistor. Another good thing is h
FE has a positive temperature coefficient, so the the voltage drop will reduce, as it warms up. Relays will normally activate at slightly below the voltage rating, so a voltage drop of 1V is no problem and drivng it hard, will only save a few hundred mV, so it generally isn't worth it.
https://www.onsemi.com/pub/Collateral/BC337-D.PDFIn this case it's an LED, which has a votlage drop of around 2V and the supply voltage is 12V, which drives both the base and LED, I'd set R
B to roughlly 100 times the current limiting resistor value. There's no need to be accurate. Use the nearest standard E24 value.
What is the LED being used for and what type is it? If it's used as an indicator, under normal office lighting conditions and it's a modern high efficiency red LED, then 20mA is probably overkill and 5mA will probably be bright enough. If it's a crappy old, orange/yellow/green LED, then you probably will need to drive it with 20mA.