Half the sample rate is the ceiling
An audio sample rate calculator applies the Nyquist limit. The highest frequency a stream can hold is half the sample rate. 44100 Hz stops at 22050 Hz. 48000 Hz stops at 24000 Hz. The page only halves the rate. It is not a listening test.
Filter setting, or a check that a wanted tone can exist in the file, is why you read the half-rate figure. 44.1 kHz reaches 22.05 kHz. 48 kHz reaches 24 kHz. Energy above that half is not stored as the frequency you hoped to keep.
44.1 kHz stops at 22.05 kHz
Nyquist frequency equals the sample rate divided by 2. A 96 kHz file can hold up to 48 kHz. A 192 kHz file can hold up to 96 kHz. The division is exact. No weighting curve and no microphone response sit inside that arithmetic.
Twice the highest frequency you must keep is the sample rate you need. Holding a 20 kHz sine takes at least 40 kHz sampling, which is why 44.1 kHz and 48 kHz both clear a music band and still leave a margin for the low-pass filter.
The tweeter may stop earlier
Loudspeakers do not automatically reach that half-rate ceiling. A 48 kHz file can still leave a tweeter that rolls off near 18 kHz, or a phone speaker finished by 8 kHz. The driver is unknown here. Only the ceiling inside the stream is named.
Compact disc audio uses 44.1 kHz. Video and most interface clocks use 48 kHz. Neither choice is made for you. Both clear 20 kHz by the half-rate rule. Record at the rate the delivery already expects, then read the half that belongs to it.
48 kHz buys filter margin, not loudness
Halving 44100 Hz gives 22050 Hz, or 22.05 kHz. A 10 kHz tone sits under that ceiling. A 30 kHz tone does not. It lies above half the rate and cannot be stored as 30 kHz in a 44.1 kHz file, whatever the file name suggests.
Halving 48000 Hz gives 24000 Hz. The same 10 kHz tone is still legal, and the ceiling is now 24 kHz. The extra 1.95 kHz over the 44.1 kHz case helps steep filters and ultrasonic work. It does not make the programme louder.