We study a formal deformation of multiplications in an operad. This closely resemble Gerstenhaber's deformation theory for associative algebras. However, this is applicable to various Loday-type algebras and to their twisted analogues. We explicitly describe the cohomology of Loday-type algebras with coefficient in a representation. Finally, the deformation of morphisms between Loday-type algebras are also considered.