In general, people are more likely to be compatible with each other when their natal planets fall into compatible elements. The compatible elements are fire with air, earth with water. That means if you have a predominance of natal planets in the fire signs, you are more likely to have a compatible relationship with someone who has a predominance of natal planets in the air signs. If your companion's planets are mostly in the earth signs, you can expect assorted difficulties depending on which elements are involved.
It is also important to note how many of your planets are in the cardinal, fixed, and mutable signs; and where your companion's planets are. A predominance of planets in one quality (i.e., five or more planets in a cardinal, fixed, or mutable sign) tells you how someone is likely to act in a relationship.
Now it is important to note to see how your and your companion's planets are distributed among the masculine and feminine signs. Most people have an even balance of five-to-five, or six-to-four, between masculine or feminine. If you and your companion each have the normal ratios of planets, you should have no trouble getting along with each other. You can work things out even when one of you has a gender ration of seven-to-three while the other has a four-to-six ratio.
If there is a difference of one or two planets in masculine (or feminine) signs between you and your companion you should have no trouble in establishing a compatible relationship. If there is a difference of three planets, you can still work things out.
However, if there are more than three planets between you and your companion, in one gender, you will both have to work very hard to maintain a relationship. The reason is that the dominantly masculine person's aggressive behavior will threaten and harass the reserved, security-motivated feminine person.
If both people are dominated by the same gender (either masculine or feminine), they share the same viewpoint and approach to life. Initially, this can give them a strong feeling of compatibility. However, they will soon feel a need for the kind of stimulation that comes from defending mildly different points of view. They will have to turn to someone else to meet that need.