According to the gradient plasticity theory, we introduced two- class strain gradient into yield function, derived from the formula of deformation localization band width by using Drucker - Prager yield criterion and gave the internal length of coal.