How to use this calculator
Reduce a sample-rate conversion to its smallest integer upsample and downsample factors.
- Enter Input sample rate (Hz), Output sample rate (Hz). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Rational sample rate conversion factors explained
Reduce the output/input sample-rate ratio by the rates’ greatest common divisor to obtain integer upsample and downsample factors. The pair defines the rational conversion ratio; it does not resample audio or design a filter, and the shared ideal passband cannot exceed the lower Nyquist frequency.
Inputs, symbols, and units
a— Input sample rate (Hz)- Input sample rate (Hz). Enter a whole number.
b— Output sample rate (Hz)- Output sample rate (Hz). Enter a whole number.
Formula and method
L=Fout/gcd(Fin,Fout); M=Fin/gcd(Fin,Fout)
Divide both integer rates by their greatest common divisor. The output-to-input ratio then becomes L/M, and M input samples span exactly the same time as L output samples. The lower Nyquist frequency limits the common ideal retained band.
A worked scenario
Input sample rate (Hz) = 48000; Output sample rate (Hz) = 44100.
- Reduced upsample factor L: 147
- Reduced downsample factor M: 160
- Ideal retained-band upper limit: 22050 Hz
- Minimum exact input-block length: 160 samples
The GCD of 48,000 and 44,100 is 300. Reducing gives L=147 and M=160; 160 input samples and 147 output samples each span 1/300 second.
Assumptions and edge cases
This plans factors and the ideal baseband limit; it does not resample audio or design the required anti-imaging/alias filter.
Frequently asked questions
Which operation comes first?
Conceptually upsample by L, filter, then downsample by M.
Why reduce by the GCD?
It avoids unnecessarily large equivalent factors.
What is the smaller Nyquist limit?
The retained original-frequency band cannot exceed half the lower sample rate.
How do I use the Rational sample rate conversion factors calculator?
Enter Input sample rate (Hz), Output sample rate (Hz). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Rational sample rate conversion factors?
Input sample rate (Hz) = 48000; Output sample rate (Hz) = 44100. Reduced upsample factor L: 147 Reduced downsample factor M: 160 Ideal retained-band upper limit: 22050 Hz Minimum exact input-block length: 160 samples The GCD of 48,000 and 44,100 is 300. Reducing gives L=147 and M=160; 160 input samples and 147 output samples each span 1/300 second.
Read our calculation methodology.