With a capo on the 5th fret, open strings sound a perfect 4th higher than standard tuning. To tune to the capo (i.e., make open strings produce standard pitch with capo on):
Result: Guitar sounds in standard tuning (E A D G B E) with capo at 5th. Without capo, it’s tuned down a 4th (B E A D F♯ B).
This is not standard practice. Normally, you tune to standard (E A D G B E) first, then apply the capo. Tuning to the capo creates a non-standard tuning that only works with the capo on. Confirm intent: are you tuning for capo use (standard), or tuning to capo (transposed)?