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.