A method of forming an alloy includes disposing a first metal oxide and a second metal oxide in a molten salt. The molten salt is in contact with a working electrode and a counter electrode. An electrical potential is applied between the counter electrode and the working electrode to co-reduce the first metal oxide and the second metal oxide to form a first metal and a second metal, respectively.