Can you mix them?
Read the row first: it is the licence of the code you are bringing in. The column is the licence your project ships under. A tick means that direction works.
How to read a cell
Find the licence of the code you want to bring in, on the left. Follow that row to the column of the licence your project already ships under. A tick means you can copy the code in and ship the result under the column licence; a dot means the two do not mix in that direction; a question mark means the answer depends on version wording or on how the pieces are combined, so it needs a human read.
The matrix is one-way on purpose. MIT into GPL-3.0 is fine, GPL-3.0 into an MIT project is not — the row and the column are not interchangeable. If you are adding a licence to a repository that already has one, read the row for the incoming code and the column for what the repo already promises its users.
| Taken from ↓ / project under → | MIT | Apache-2.0 | BSD-3 | ISC | MPL-2.0 | LGPL-3.0 | GPL-2.0 | GPL-3.0 | AGPL-3.0 | EPL-2.0 |
|---|---|---|---|---|---|---|---|---|---|---|
| MIT | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Apache-2.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | ✓ | ✓ | ? |
| BSD-3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ISC | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| MPL-2.0 | · | · | · | · | ✓ | ✓ | ? | ✓ | ✓ | · |
| LGPL-3.0 | · | · | · | · | · | ✓ | · | ✓ | ✓ | · |
| GPL-2.0 | · | · | · | · | · | · | ✓ | · | · | · |
| GPL-3.0 | · | · | · | · | · | · | · | ✓ | ✓ | · |
| AGPL-3.0 | · | · | · | · | · | · | · | · | ✓ | · |
| EPL-2.0 | · | · | · | · | · | · | ? | ? | ? | ✓ |
The matrix covers ten licences. Unlicense and CC0 behave like MIT here; BUSL, SSPL and Elastic-2.0 are left out because they are not open source and cannot be combined with open-source code on open-source terms.
Four things the matrix is telling you
Permissive licences are universal donors
MIT, BSD and ISC code can go into any project in the table, including AGPL. The notice survives; nothing else does.
The GPL family only flows forward
GPL-2.0 code cannot enter GPL-3.0 and GPL-3.0 code cannot enter GPL-2.0 unless the project says “or later”. That single wording is why so many older projects used it.
Weak copyleft survives as a file, not a project
MPL-2.0 files stay MPL inside a larger work; the rest of the project can be anything. §3.3 adds a secondary-licence route: unless a file carries the “Incompatible With Secondary Licenses” notice, the MPL code may also go out under GPL-2.0-or-later, LGPL-2.1-or-later or AGPL-3.0-or-later. GPL-3.0, LGPL-3.0 and AGPL are ticks for that reason; GPL-2.0 is a question because it turns on that notice.
EPL is almost an island
EPL-2.0 §3.2 does offer a secondary licence, so some GPL combinations are possible if the EPL code is set up for it. The FSF still reads EPL-2.0 as essentially as GPL-incompatible as 1.0, and in an Eclipse stack nobody needs the combination — which is why those cells are questions rather than ticks.