We considered the problem of localization electrons and holes taking for instance pyramidal InAs quantum dots in GaAs. The mechanics was solved localizing potential into account geometry, chemical composition built-in fields mechanical stress strain. found that strongest both types charge carriers can be achieved if ratio pyramid height to its base is about 0.2. Keywords: dots, elastic strain, ...