In \( \text{H}_2\text{SO}_4 \), hydrogen has an oxidation state of +1, oxygen has an oxidation state of -2. Let the oxidation state of sulfur be \( x \).
The sum of oxidation states in a neutral compound must be zero. Therefore:
\[
2 \times (+1) + x + 4 \times (-2) = 0
\]
\[
2 + x - 8 = 0
\]
\[
x = +6
\]
Thus, the oxidation state of sulfur in \( \text{H}_2\text{SO}_4 \) is +6.