An ant is on one face of a cube.  At every step, the ant walks to one of its four neighboring faces with equal probability.  What is the expected (average) number of steps for it to reach the face opposite its starting face?
1. **Define the problem and variables:**
   - Let \( A \) be the starting face of the ant.
   - Let \( B_1, B_2, B_3, B_4 \) be the faces adjacent to \( A \).
   - Let \( C \) be the face opposite \( A \).
   - We need to find \( E(A) \), the expected number of steps for the ant to reach \( C \) from \( A \).

2. **Set up the equations:**
   - The expected number of steps to reach \( C \) from \( C \) is \( E(C) = 0 \).
   - By symmetry, the expected number of steps to reach \( C \) from any of the \( B_i \) faces is the same. Let \( E(B) = E(B_i) \) for \( i = 1, 2, 3, 4 \).

3. **Formulate the equation for \( E(B) \):**
   - When the ant is on a \( B \) face, it can:
     - Move to \( C \) with probability \( \frac{1}{4} \).
     - Move to one of the other \( B \) faces with probability \( \frac{2}{4} \).
     - Move back to \( A \) with probability \( \frac{1}{4} \).
   - Therefore, the equation for \( E(B) \) is:
     \[
     E(B) = 1 + \frac{1}{4} E(C) + \frac{2}{4} E(B) + \frac{1}{4} E(A)
     \]
   - Since \( E(C) = 0 \), this simplifies to:
     \[
     E(B) = 1 + \frac{1}{2} E(B) + \frac{1}{4} E(A)
     \]

4. **Solve for \( E(B) \):**
   - Rearrange the equation to isolate \( E(B) \):
     \[
     E(B) - \frac{1}{2} E(B) = 1 + \frac{1}{4} E(A)
     \]
     \[
     \frac{1}{2} E(B) = 1 + \frac{1}{4} E(A)
     \]
     \[
     E(B) = 2 + \frac{1}{2} E(A)
     \]

5. **Formulate the equation for \( E(A) \):**
   - When the ant is on \( A \), it moves to one of the \( B \) faces in one step:
     \[
     E(A) = 1 + E(B)
     \]

6. **Substitute \( E(B) \) into the equation for \( E(A) \):**
   - Substitute \( E(B) = 2 + \frac{1}{2} E(A) \) into \( E(A) = 1 + E(B) \):
     \[
     E(A) = 1 + 2 + \frac{1}{2} E(A)
     \]
     \[
     E(A) = 3 + \frac{1}{2} E(A)
     \]

7. **Solve for \( E(A) \):**
   - Rearrange to isolate \( E(A) \):
     \[
     E(A) - \frac{1}{2} E(A) = 3
     \]
     \[
     \frac{1}{2} E(A) = 3
     \]
     \[
     E(A) = 6
     \]

The final answer is \( \boxed{6} \).