Measure the Sink Ledge
Start with the dry, flat strip beside your faucet. A tray needs all of its feet on that strip.
Measure from the rim, not the drain
Run a ruler from the wall to the point where the counter starts to slope into the bowl. Repeat at both ends of the spot you want to use. Work with the smaller depth. Trace the base of the holder on paper and lay it in that space.
Turn the water on
Move both handles through their full range. Leave room for your knuckles and keep the paper clear of the moving parts. For a shared setup, put two cups on the outline and try picking either one up independently.
Lift a cup straight up
On the wall, mark the proposed holder height with removable tape. Lift your cup past that mark, then swing open the medicine cabinet. Check the rack’s mounting method and wall surface before attaching it.