An easy way to recognise perfect fifths: there must be only one half-tone (two neighbouring white keys). Thus, the fifth has the same accidental (♮, ♯ ou ♭) as the root (e.g. C-G, D-A or F-D) except for the B: the fifth must be one half-tone above (thus B-F♯).
<a href="//commons.wikimedia.org/wiki/User:Cdang" title="User:Cdang">Cdang</a>
CC BY-SA 4.0
<span class="int-own-work" lang="en">Own work</span>