When dividends are declared that violate state laws or a corporate charter, they are declared illegal. States stipulate that dividends be paid out of current income or retained earnings and not a capital surplus. Dividends also cannot be declared if they will make the company insolvent. There are civil and criminal penalties for declaring illegal dividends. Any stockholder with illegal dividends must return them.