Let RR be a nonzero commutative ring and FF a . The rank of FF is the of a , denoted rank⁡(F)\operatorname{rank}(F). This is well-defined because any two bases of a free module over a nonzero commutative ring have the same cardinality.

When the rank is finite, it plays the role of , but over a general ring one typically speaks of rank only for free (or locally free) modules.

Examples
  • rank⁡(Rn)=n\operatorname{rank}(R^n)=n.
  • The zero module has rank 00 (its basis is the empty set).
  • If F≅⨁i∈IRF\cong \bigoplus_{i\in I} R, then rank⁡(F)=∣I∣\operatorname{rank}(F)=|I|.