Explain the role of Entities in Clean Architecture.

Updated Apr 28, 2026

Short answer

Entities encapsulate enterprise-wide business rules and are the most stable part of the system.

Deep explanation

Entities represent the core business objects of the application. They can be an object with methods, or a set of data structures and functions. They are independent of any external changes like UI, database, or frameworks. If the application is a banking system, an Entity would handle interest calculation rules that remain true regardless of whether the app is on the web or mobile.

Real-world example

In an e-commerce system, a 'Product' and its discount logic are Entities.

Common mistakes

  • Adding UI validation logic (like 'is this field required for the form') inside an Entity.

Follow-up questions

  • What is the difference between an Entity and a Database Model?

More Clean Architecture interview questions

View all →