Designing an interplanetary mission is a complex task and requires the choice of the launch opportunity and of the exact launch and arrival dates. Depending on these choices, the trajectory must be defined and, in case of continuous thrust, also the thrust profile needs to be optimized.. Traditionally, these choices are made using some plots which allow to find a good compromise between the travel duration and the cost of the mission, which is often expressed in terms of initial mass in Earth orbit (IMLEO). IRMA (InterPlanetary Mission Analysis) code, based on the MATLAB environment, is here described. It allows to deal with both impulsive propulsion (using the patched conics approach) and low continuous thrust (Solar or Nuclear electric or propellantless, like solar sails). A specific solver, based on indirect optimization techniques, has been developed specifically for this program, but IRMA can be used also as an interface for standard solvers, based on direct methods, like the FALCON.m code. * Corresponding author: giancarlo.genta@polito.it Fig.3. Trajectory for an impulsive lunar mission with a travel time of 2.5 days. A non-inertial frame centred in the centre of mass of the Earth-Moon system with x-axis on the Earth-Moon line is used. Both the starting approximation (elliptical and hyperbolic, dashed line) and the numerical solution (full line) are shown. The starting and arrival orbits are at 300 km and 200 km from the surface. . The starting ∆V is 3152 m/s, while at arrival a ∆V of 860 m/s is required. The total ∆V of the mission is thus 4012 m/s.