Am I Gaining Fat or Muscle?

I was thinking about this today whilst standing on the scale and looking that the flashing number on the digital dial. Am I actually making gains at the gym, or just adding on a combination of muscle and fat?