Pixels, inches, centimeters or plain ratio numbers like 4 and 5 — units don't matter as long as both match.
Type either side; the other one is calculated.
Aspect Ratio Calculator by ArtsInterstices