We investigated penetration of a thermally deposited MgAg alloy electrode to an amorphous organic under-layer using transmission electron microscopy and energy dispersive X-ray spectroscopy of the cross section near the organic/metal interface. Migration of Mg to the organic underlayer was observed. The amount of migrated Mg showed exponential decay with the depth from the interface. The decay constant, i.e. penetration depth of Mg, was approximately 2 nm.