It's not shite. Of course a gym will help. But it's very easy to over eat and undo the work done in a gym.
As a (very loose).rule of thumb 3500 calories equals a pound ( obviously a deficit of that amount you lose a pound, over eat that amount gains a pound).
Think how much excersise you need to...