Relational algebra is the formal system used to manipulate data in a relational database. It consists of operators like select, project, join, union, and difference that are applied to relations to retrieve or modify data. Relational calculus provides an alternative, non-procedural way to query databases using logic and variables. Both are based on relational and algebraic concepts and underpin the functionality of relational databases and SQL.