AS says the midfielder will be Real's first signing of the summer market. His contract carries a €4m buyback clause.
Mascarell will be signed and then sold with clubs from Germany and England keen. Real believe they can sell for €15m.
However, the midfielder is expected to do preseason with Real before management make a final decision.
Along with experience in Germany, Mascarell has also played in England with Derby County.