The acceleration of an object is defined as the rate at which its velocity changes. This means that if an object is moving at a constant speed, then its acceleration is zero. However, if an object is speeding up or slowing down, then its acceleration is non-zero.
So, in summary, an object is accelerating when its velocity is changing.