Let (A,〈⋅,…,⋅〉) be an n-algebra of arbitrary dimension and over an arbitrary base field 𝔽. A basis ℬ={ei}i∈I of A is said to be multiplicative if for any i1,…,in∈I, we have either 〈ei1,…,ein〉=0 or 0≠〈ei1,…,ein〉∈𝔽ej for some (unique) j∈I. If n=2, we are dealing with algebras admitting a multiplicative basis while if n=3 we are speaking about triple systems with multiplicative bases. We show that if A admits a multiplicative basis then it decomposes as the orthogonal direct sum A=⊕αIα, of well-described ideals admitting each one a multiplicative basis. Also, the minimality of A is characterized in terms of the multiplicative basis and it is shown that, under a mild condition, the above direct sum is by means of the family of its minimal ideals.