Typically a gate agent will check it to your destination for free. However, if it's too large to be a carry on size they may charge you for it. It would depend on the circumstances, but most likely it would be taken away and 'gate checked' into the hold.