A method for use in adding detergent into a washing machine during washing and a washing machine. The method for use in adding detergent comprises: after a control system of a washing machine receives a signal which is generated by a user pressing an automatic addition button on the washing machine, without stopping the operation of the washing machine, automatically calculating an amount of detergent to input and, according to a calculation result, inputting the detergent into the washing machine.