An algorithm is a finite set of well-defined instructions or rules designed to perform a specific task or solve a problem. It operates step by step, often in logical or mathematical terms, and can be implemented by computers, calculators, or humans to achieve consistent and repeatable outcomes.