The Maxwell Garnett equation reads: 
where  is the effective dielectric constant of the medium,  of the inclusions, and  of the matrix;  is the volume fraction of the inclusions.
The Maxwell Garnett equation is solved by:
so long as the denominator does not vanish. A simple MATLAB calculator using this formula is as follows.