All I see online is that each object can have 2 master-detail relationships, but on the Salesforce App Limits PDF : https://na5.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf

It says that custom objects can have 8, what release was this in? I am studying for DEV 401 and I wanted to make sure I knew the answer to this before I take it.

6 Answers 6


There is only 2 Master Detail Relationship allowed per object and it can have upto three custom detail levels.
You can read more about it here, Considerations for Relationships


Each object is allowed to have one or two masters, or up to 8 details.

  • 2
    Can you tell me where you read that you can have 8 details? Thanks Nov 5, 2015 at 20:23
  • This is not limited to 8, there is no documentation --- can create 10+ without issue Feb 12, 2019 at 18:05

You can have a Total of 40 Relationship fields with a Maximum of 2 Master Detail Relationships. So you can have all 40 as Lookup Relationship fields, 38 Lookup and 2 MD 39 Lookup and 1 MD relationship fields on an object.


Answer is 2 master-detail relationships on an object. The purpose of this note is the reminder that the limits are placed on the child object. Pretty obvious on an ER diagram; w/o ER in mind I for one will sometimes confuse where the limits are applied.


Just created 4 master-details relationships, so it is certainly possible for a master to have more than 2 relationships.enter image description here

  • 2
    That's a different situation. Each object cannot be the detail side of more than two master-detail relationships.
    – David Reed
    Sep 10, 2021 at 18:47

A custom object cannot be on detail side for more than 2 Master-Detail relationships. It means any custom object can be involved in maximum 2 Master-Detail relationships as detail object.

Hope it answers your query!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.