In regards to Homecoming, Sony gets to keep all the money from the movie, but Disney profits from merchandise sales, aside from the producer’s fee Sony had to pay Marvel Studios for making the film.
In 2011, Disney was able to recover the merchandising rights to Spider-Man, while Sony still retained the character’s movie rights.
It has now been revealed why Disney allowed Marvel Studios to make Jon Watts’ Spider-Man: Homecoming for Sony Pictures, knowing they wouldn’t receive any money from ticket sales.
However, part of the agreement was that any solo Spider-Man movie would be made for Sony Pictures, not Disney.