To determine the ratio of nitrogen atoms to hydrogen atoms in ammonia ([tex]$NH_3$[/tex]), we need to examine the chemical formula of ammonia and its composition.
The chemical formula for ammonia is [tex]$NH_3$[/tex]. This formula indicates that:
- There is 1 nitrogen atom (N) in each molecule of ammonia.
- There are 3 hydrogen atoms (H) in each molecule of ammonia.
To find the ratio of nitrogen atoms to hydrogen atoms, we compare the number of nitrogen atoms to the number of hydrogen atoms in one molecule of ammonia:
[tex]\[
\text{Number of nitrogen atoms} : \text{Number of hydrogen atoms} = 1 : 3
\][/tex]
Thus, the ratio of nitrogen atoms to hydrogen atoms in ammonia is [tex]\( 1 : 3 \)[/tex].
Hence, the correct answer is:
[tex]\[
\boxed{B \text{.} \ 1 \ \text{to} \ 3}
\][/tex]